]> git.immae.eu Git - github/fretlink/ansible-kong-app.git/blame - dhall/server/service/plugin/mkRequestTermination.dhall
Merge pull request #27 from gaetanfl/fix_upstream_creation_return_code
[github/fretlink/ansible-kong-app.git] / dhall / server / service / plugin / mkRequestTermination.dhall
CommitLineData
331e852c 1let Plugin = ./Plugin.dhall
77e27a11 2
331e852c 3let config = ./Config.dhall
77e27a11
HAL
4
5in λ(statusCode : Natural)
331e852c
PB
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