aboutsummaryrefslogtreecommitdiffhomepage
path: root/dhall/server/service/plugin/mkRequestTermination.dhall
diff options
context:
space:
mode:
Diffstat (limited to 'dhall/server/service/plugin/mkRequestTermination.dhall')
-rw-r--r--dhall/server/service/plugin/mkRequestTermination.dhall20
1 files changed, 20 insertions, 0 deletions
diff --git a/dhall/server/service/plugin/mkRequestTermination.dhall b/dhall/server/service/plugin/mkRequestTermination.dhall
new file mode 100644
index 0000000..aff538f
--- /dev/null
+++ b/dhall/server/service/plugin/mkRequestTermination.dhall
@@ -0,0 +1,20 @@
1 let Plugin = ./Plugin.dhall
2
3in let config = constructors ./Config.dhall
4
5in λ(statusCode : Natural)
6 → λ(contentType : Text)
7 → λ(body : Text)
8 → { name =
9 "request-termination"
10 , config =
11 config.RequestTermination
12 { status_code =
13 statusCode
14 , content_type =
15 contentType
16 , body =
17 body
18 }
19 }
20 : Plugin