---
title: "Returns a deflate-encoded JSON echo (`Content-Encoding: deflate`)."
url: "https://developer.rucho.org/apis/rucho/versions/5bdf1bcb-8db4-40f1-a293-72c7198e26c8/operations/deflate_handler"
---

> Full API specification: https://developer.rucho.org/apis/rucho/versions/5bdf1bcb-8db4-40f1-a293-72c7198e26c8.md

# Returns a deflate-encoded JSON echo (`Content-Encoding: deflate`).

`GET` `/deflate`

Operation ID: `deflate_handler`

Uses the zlib container (matching httpbin's `zlib.compress`), which is what `Content-Encoding: deflate` means in practice for real-world clients.

## Responses

- `200` - deflate-encoded JSON echo of the request

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: rucho
  version: 1.6.0
servers:
  - url: https://rucho.org
    description: Production (EKS us-east-2, behind Kong)
paths:
  /deflate:
    get:
      tags:
        - crate::routes::encoding
      summary: "Returns a deflate-encoded JSON echo (`Content-Encoding: deflate`)."
      description: >-
        Uses the zlib container (matching httpbin's `zlib.compress`), which is
        what

        `Content-Encoding: deflate` means in practice for real-world clients.
      operationId: deflate_handler
      responses:
        "200":
          description: deflate-encoded JSON echo of the request
```
