Skip to content

Commit a8a3401

Browse files
committed
docs(event_handler): update example
1 parent 0999a3c commit a8a3401

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/core/event_handler/api_gateway.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,16 @@ For convenience, these are the default values when using `CORSConfig` to enable
314314

315315
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.
316316

317+
???+ info
318+
Powertools serializes the headers and cookies according to the type of input event.
319+
For some integrations this requires headers and cookies to be encoded as `multiValueHeaders`.
320+
321+
???+ warning
322+
If you use the ALB integration, make sure you [enable the multi value headers feature](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/lambda-functions.html#multi-value-headers) in order to fully support this feature.
323+
317324
=== "fine_grained_responses.py"
318325

319-
```python hl_lines="7 24-28"
326+
```python hl_lines="7 24-29"
320327
--8<-- "examples/event_handler_rest/src/fine_grained_responses.py"
321328
```
322329

0 commit comments

Comments
 (0)