LinuxCommandLibrary

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 -port [8080]
copy
Start with an initial response status
$ httplab -response [200]
copy
Start with an initial response delay
$ httplab -delay [500]
copy
Enable CORS
$ httplab -cors
copy

SYNOPSIS

httplab [-port port] [-response code] [-delay ms] [-cors]

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.

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard