A simple httpbin-like HTTP testing service built with FastAPI. This lightweight service provides essential endpoints for testing HTTP requests and responses.
- Built with FastAPI for high performance
- Minimal dependencies
- Docker support with port 80
- Easy to deploy and use
- Python 3.13+
- uv for dependency management
uv venv --python 3.13# On macOS/Linux
source .venv/bin/activate
# On Windows
.venv\Scripts\activateuv pip install -e .uvicorn main:app --reloadThe application will be available at http://localhost:8000
docker build -t fastapi-httpbin .docker run -p 80:80 fastapi-httpbinThe application will be available at http://localhost
Welcome endpoint with available endpoints information.
Example:
curl http://localhost:8000/Returns GET request data including query parameters, headers, origin IP, and URL.
Example:
curl "http://localhost:8000/get?param1=value1¶m2=value2"Returns POST request data including body, form data, JSON, headers, origin IP, and URL.
Example:
curl -X POST http://localhost:8000/post \
-H "Content-Type: application/json" \
-d '{"key": "value"}'Returns all request headers.
Example:
curl http://localhost:8000/headersReturns the client's IP address.
Example:
curl http://localhost:8000/ipReturns the User-Agent header.
Example:
curl http://localhost:8000/user-agentFastAPI automatically generates interactive API documentation:
- Swagger UI:
http://localhost:8000/docs - ReDoc:
http://localhost:8000/redoc
MIT