Ring request/response specification: https://github.com/ring-clojure/ring/blob/1.7.0/SPEC
Ring request/response specification: https://github.com/ring-clojure/ring/blob/1.7.0/SPEC
(api-gw->handler handler)
Wraps a Ring handler so it matches the signature of "deflambada" for AWS Gateway/Lambda integration (see uswitch/lambada).
Wraps a Ring handler so it matches the signature of "deflambada" for AWS Gateway/Lambda integration (see uswitch/lambada).
(api-gw-proxy-event->request event ctx)
Transform AWS API Gateway event to Ring a request.
Transform AWS API Gateway event to Ring a request.
(resource-path-params->uri resource path-params)
Constructs an URI from a resource (string) and a map containing path parameters.
Input: "/example/resource/{id}/{type}" {"id" "1234" "type" "foo"}
Output: "/example/resource/1234/foo"
Constructs an URI from a resource (string) and a map containing path parameters. Input: "/example/resource/{id}/{type}" {"id" "1234" "type" "foo"} Output: "/example/resource/1234/foo"
(response->api-gw-proxy-response response)
Takes a Ring response and transform it into response that AWS Gateway understands when using "Proxy Resource". Failing to do so results in "502 - Internal server error".
Takes a Ring response and transform it into response that AWS Gateway understands when using "Proxy Resource". Failing to do so results in "502 - Internal server error".
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close