Compress JSON Responses Example
With Traffic Policy, you can ensure all JSON responses returned by your upstream services are compressed en route to the API consumer.
This rule compresses JSON responses using the gzip
, br
, deflate
, and compress
algorithms.
note
If your upstream service already handles compression, ngrok skips this step.
- Traffic Policy
- Agent Configuration File
- YAML
- JSON
Loading…
Loading…
- YAML
- JSON
Loading…
Loading…
See the compress-response
Traffic Policy action docs for more information.