HTTPCan

A modern, high-performance superset of httpbin.org for testing HTTP clients, proxies, and AI agents — with mock OpenAI/Anthropic LLM APIs and a full OAuth 2.0 server. Built with Rust and Actix Web.

Quick Start #

You're on a live instance — https://httpcan.org. Try an endpoint now:

curl https://httpcan.org/get

Want your own? Run HTTPCan locally or in production:

# Docker
docker run -p 8080:8080 ghcr.io/seedvector/httpcan:latest

# Cargo
cargo install httpcan && httpcan

curl http://localhost:8080/get

Why HTTPCan #

HTTPCan is a 84-endpoint superset of httpbin.org: every httpbin.org endpoint is covered and drop-in compatible, plus 33 endpoints httpbin.org doesn't have and 18 it has but httpcan fixes or extends (see the badges below). On top of that:

Enhanced  18 endpoints httpbin has, but httpcan fixes or extends New  33 endpoints not available in httpbin.org no badge  drop-in compatible with httpbin.org

Endpoints #

Each endpoint has a Copy button with a ready-to-run curl example (with parameters filled in) targeting this instance.

HTTP Methods #

Testing different HTTP verbs.

Anything #

Returns anything that is passed to the request.

Auth #

Auth methods.

Status codes #

Generates responses with a given status code.

Request inspection #

Inspect the request data.

Response inspection #

Inspect the response data, like caching and headers.

Response formats #

Returns responses in different data formats.

Dynamic data #

Generates random and dynamic data.

Cookies #

Creates, reads, and deletes cookies.

Images #

Returns different image formats.

Redirects #

Returns different redirect responses.

Streaming #

Server-Sent Events and NDJSON streaming endpoints.

AI API Mock #

Mock OpenAI- and Anthropic-compatible LLM APIs: point an SDK base_url at /llm and test without a paid provider.

OAuth 2.0 Mock #

Mock authorization server: RFC 6749 four grants with PKCE, one-time codes, rotating refresh tokens, and RFC 8414 discovery.

Observability #

Health checks and instance identification.