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
+12-3
Original file line number
Diff line number
Diff line change
@@ -360,15 +360,24 @@ You can use the `Response` class to have full control over the response. For exa
360
360
361
361
### Compress
362
362
363
-
You can compress with gzip and base64 encode your responses via `compress` parameter.
363
+
You can compress with gzip and base64 encode your responses via `compress` parameter. You have the option to pass the `compress` parameter when working with a specific route or using the Response object.
364
+
365
+
???+ info
366
+
The `compress` parameter used in the Response object takes precedence over the one used in the route.
364
367
365
368
???+ warning
366
369
The client must send the `Accept-Encoding` header, otherwise a normal response will be sent.
0 commit comments