Liking cljdoc? Tell your friends :D

aws-lambda-adapters.ring

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
raw docstring

api-gw->handlerclj

(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).
sourceraw docstring

api-gw-proxy-event->requestclj

(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.
sourceraw docstring

resource-path-params->uriclj

(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"
sourceraw docstring

response->api-gw-proxy-responseclj

(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".
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close