Skip to content

AdguardTeam/HttpBin

Repository files navigation

HTTPBin

This is a Cloudflare Worker port of httpbin.org HTTP request & response testing service.

Available on https://httpbin.agrd.workers.dev/.

How to debug

Install dependencies and build:

npm install
npm run build

Run tests and lints:

npm run lint
npm run test

Run the local server:

npm run start

Development

This project is written in TypeScript and uses:

  • TypeScript for type safety
  • esbuild for fast bundling
  • Cloudflare Workers runtime with type definitions

Endpoints

Oblivious HTTP (OHTTP) Gateway Endpoints

Httpbin also includes Oblivious HTTP gateway endpoints as specified in RFC 9458.

  • /ohttp/config - Returns the OHTTP KeyConfig that clients use to encapsulate their requests.
  • /ohttp/gateway - Accepts OHTTP-encapsulated requests, decapsulates them, processes them internally against httpbin endpoints (regardless of the target host), and returns OHTTP-encapsulated responses.