LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

httplab

Interactive web server for inspecting and mocking HTTP requests

TLDR

Start httplab on the default port
$ httplab
copy
Start on a specific port
$ httplab -p [8080]
copy
Start with an initial response status and body
$ httplab -s [200] -b "[Hello, World]"
copy
Start with an initial response delay
$ httplab -d [500]
copy
Enable CORS
$ httplab --cors
copy
Specify custom config path
$ httplab -c [path/to/.httplab]
copy

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.

INSTALL

nix profile install nixpkgs#httplab
copy

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.

SEE ALSO

curl(1), nc(1), httpie(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid