You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "You can generate responsive variants of your own classes by wrapping their definitions in the `@responsive` directive:\n```css\n@responsive {\n .alert {\n background-color: #E53E3E;\n }\n}\n```\n",
"description": "The `@screen` directive allows you to create media queries that reference your breakpoints by **name** instead of duplicating their values in your own CSS:\n```css\n@screen sm {\n /* ... */\n}\n```\n…gets transformed into this:\n```css\n@media (min-width: 640px) {\n /* ... */\n}\n```\n",
"description": "Generate `hover`, `focus`, `active` and other **variants** of your own utilities by wrapping their definitions in the `@variants` directive:\n```css\n@variants hover, focus {\n .btn-brand {\n background-color: #3182CE;\n }\n}\n```\n",
The list of supported frameworks matches [in-process-request](https://github.com/janaz/in-process-request)
8
-
* Express.js v3
9
-
* Express.js v4
10
-
* Express.js v5
11
-
* Apollo Server v2
12
-
* Hapi v19 (only supported in `nodejs12.x` runtime)
13
-
* Hapi v20 (only supported in `nodejs12.x` runtime)
14
-
* NestJS v7
15
-
* Connect v3
16
-
* Koa v2
17
-
* Polka
18
-
* Fastify v3
8
+
9
+
- Express.js v3
10
+
- Express.js v4
11
+
- Express.js v5
12
+
- Apollo Server v2
13
+
- Hapi v19 (only supported in `nodejs12.x` runtime)
14
+
- Hapi v20 (only supported in `nodejs12.x` runtime)
15
+
- NestJS v7
16
+
- Connect v3
17
+
- Koa v2
18
+
- Polka
19
+
- Fastify v3
19
20
20
21
Inspired by [aws-serverless-express](https://github.com/awslabs/aws-serverless-express)
21
22
22
23
It supports `nodejs10.x` and `nodejs12.x` execution environments.
23
24
24
25
The main differences between this module and `aws-serverless-express` are
25
-
* It's using [in-process-request](https://github.com/janaz/in-process-request) module to execute app handlers in-process without having to start background http server
26
-
* Simpler setup as it doesn't require managing the internal http server
27
-
* Support for applications that require asynchronous setup (for example reading config from network, or decrypting secrets from KMS)
28
-
* It's faster, because it doesn't need to pass the request to the internal server through the unix socket
29
-
* It's free from issues caused by limits in Node.js http module such as header size limit
26
+
27
+
- It's using [in-process-request](https://github.com/janaz/in-process-request) module to execute app handlers in-process without having to start background http server
28
+
- Simpler setup as it doesn't require managing the internal http server
29
+
- Support for applications that require asynchronous setup (for example reading config from network, or decrypting secrets from KMS)
30
+
- It's faster, because it doesn't need to pass the request to the internal server through the unix socket
31
+
- It's free from issues caused by limits in Node.js http module such as header size limit
30
32
31
33
The handler supports events from the following sources:
34
+
32
35
- API Gateway [REST APIs](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-rest-api.html)
33
36
- API Gateway [HTTP APIs](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api.html)
@@ -42,13 +45,15 @@ There's a [demo app](https://github.com/janaz/lambda-request-handler-example) sh
42
45
The default export of `lambda-request-handler` is a function that takes an application handler (i.e. Express.js app instance) as an argument and returns an AWS Lambda handler function.
43
46
44
47
An additional header is injected into the request
45
-
*`x-aws-lambda-request-id` - AWS Lambda Request Id
48
+
49
+
-`x-aws-lambda-request-id` - AWS Lambda Request Id
@@ -75,13 +80,13 @@ If the above file in your Lambda source was called `index.js` then the name of t
75
80
Sometimes the application needs to read configuration from remote source before it can start processing requests. For example it may need to decrypt some secrets managed by KMS. For this use case a special helper `deferred` has been provided. It takes a factory function which returns a Promise that resolves to the app instance. The factory function will be called only once.
0 commit comments