---
title: "Returns a small sample HTML document as `text/html; charset=utf-8`."
url: "https://developer.rucho.org/apis/rucho/versions/5bdf1bcb-8db4-40f1-a293-72c7198e26c8/operations/html_handler"
---

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

# Returns a small sample HTML document as `text/html; charset=utf-8`.

`GET` `/html`

Operation ID: `html_handler`

Deliberately non-JSON — a controllable upstream for testing how a gateway handles `text/html` responses.

## Responses

- `200` - A sample HTML document

## 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:
  /html:
    get:
      tags:
        - crate::routes::content_types
      summary: Returns a small sample HTML document as `text/html; charset=utf-8`.
      description: >-
        Deliberately non-JSON — a controllable upstream for testing how a
        gateway

        handles `text/html` responses.
      operationId: html_handler
      responses:
        "200":
          description: A sample HTML document
          content:
            text/html:
              schema:
                type: string
```
