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
Copy file name to clipboardExpand all lines: docs/core/event_handler/api_gateway.md
+9-2
Original file line number
Diff line number
Diff line change
@@ -312,11 +312,18 @@ For convenience, these are the default values when using `CORSConfig` to enable
312
312
313
313
### Fine grained responses
314
314
315
-
You can use the `Response` class to have full control over the response, for example you might want to add additional headers or set a custom Content-type.
315
+
You can use the `Response` class to have full control over the response. For example, you might want to add additional headers, cookies, or set a custom Content-type.
316
+
317
+
???+ info
318
+
Powertools serializes headers and cookies according to the type of input event.
319
+
Some event sources require headers and cookies to be encoded as `multiValueHeaders`.
320
+
321
+
???+ warning "Using multiple values for HTTP headers in ALB?"
322
+
Make sure you [enable the multi value headers feature](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/lambda-functions.html#multi-value-headers) to serialize response headers correctly.
0 commit comments