api

http4k / org.http4k.serverless.lambda / LambdaFunction

LambdaFunction

class LambdaFunction (source)

This is the main entry point for the lambda. It uses the local environment to instantiate the Http4k handler which can be used for further invocations.

Constructors

Name Summary
<init> LambdaFunction(env: Map<String, String> = System.getenv())
This is the main entry point for the lambda. It uses the local environment to instantiate the Http4k handler which can be used for further invocations.

Functions

Name Summary
handle fun handle(request: ApiGatewayProxyRequest): ApiGatewayProxyResponse

Extension Functions

Name Summary
with fun <T> T.with(vararg modifiers: (T) -> T): T