httplab
Interactive web server for inspecting and mocking HTTP requests
TLDR
SYNOPSIS
httplab [options]
DESCRIPTION
httplab is an interactive web server that lets you inspect incoming HTTP requests and forge responses in real time through a terminal UI. It runs a local HTTP server and displays each request's method, path, headers, and body, while allowing you to customize the response status code, headers, and body interactively.Pre-built responses can be saved and loaded from a .httplab configuration file. The tool is useful for API development, webhook testing, and debugging HTTP client behavior.
PARAMETERS
-p, --port port
Port to bind to (default: 10080).-s, --status code
Initial response status code (default: 200).-b, --body string
Initial response body (default: "Hello, World").-d, --delay ms
Initial response delay in milliseconds.-H, --headers strings
Initial response headers (default: X-Server:HTTPLab).-a, --auto-update
Auto-update response when fields change (default: true).--cors
Enable CORS.--cors-display
Display CORS requests (default: true).-c, --config path
Custom config path.-v, --version
Print version.
CAVEATS
Designed for development and testing only; not suitable for production use. Default port is 10080, which may conflict with other services.
HISTORY
httplab was created by Gustavo Chaín (qustavo) and is written in Go. It was designed to provide developers with a quick way to inspect and mock HTTP interactions without configuring a full mock server.
