Liking cljdoc? Tell your friends :D

ring-aws-lambda-adapter.core


defhandlercljmacro

(defhandler name handler options)

A ring handler for AWS Lambda and AWS API Gateway

A ring handler for AWS Lambda and AWS API Gateway
sourceraw docstring

event->requestclj

(event->request event context)

Transform lambda input to Ring requests. Has two extra properties: :event - the lambda input :context - an instance of a lambda context http://docs.aws.amazon.com/lambda/latest/dg/java-context-object.html

Transform lambda input to Ring requests. Has two extra properties:
:event - the lambda input
:context - an instance of a lambda context
           http://docs.aws.amazon.com/lambda/latest/dg/java-context-object.html
sourceraw docstring

handle-requestclj

(handle-request handler options in out context)

Handle a lambda invocation as a ring request. Writes ring response as JSON to out for 200 responses, rases an exception with ring response as JSON for non-200 responses

Handle a lambda invocation as a ring request. Writes ring response as JSON to
`out` for 200 responses, rases an exception with ring response as JSON for
non-200 responses
sourceraw docstring

interpolate-pathclj

(interpolate-path params path)
source

maybe-decode-jsonclj

(maybe-decode-json json)
source

ResponseBodycljprotocol

wrap-bodyclj

(wrap-body body)
source

wrap-responseclj

(wrap-response response)
source

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

× close