We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7748efd commit a901cedCopy full SHA for a901ced
README.md
@@ -0,0 +1,21 @@
1
+# AWS Lambda API Gateway Servlet
2
+
3
+This util allows for mapping any HttpServletRequest and HttpServletResponse to and from API gateway classes
4
5
+## Installation
6
+TODO
7
8
+## Usage
9
+Example with javalin and aws lambda handler:
10
+```kotlin
11
+class HelloHandler : RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> {
12
13
+ companion object{
14
+ val app = Javalin.createStandalone()
15
+ app.get("/") { ctx -> ctx.result("Hello World") }
16
+ }
17
18
+ override fun handleRequest(input: APIGatewayProxyRequestEvent, context: Context) = app.servlet().serve(input)
19
+}
20
21
+```
0 commit comments