HTTP Request Printer is a terminal-based application built with Bubble Tea that allows you to start an HTTP server and view incoming HTTP requests in real-time. The app provides a simple interface to inspect request details such as method, URL, headers, and body.
- Start an HTTP server on port 8000.
- View incoming HTTP requests in a user-friendly terminal interface.
- Navigate through multiple requests using keyboard controls.
- Supports real-time updates for incoming requests.
- Go 1.24 or later
- A terminal emulator
-
Clone the repository:
git clone https://github.com/floriandulzky/http-request-printer.git cd http-request-printer -
Build the application:
go build -o http-request-printer
-
Run the application:
./http-request-printer
-
Start the application by running the binary:
./http-request-printer
-
Press Enter to start the HTTP server on port 8000.
-
Send HTTP requests to
http://localhost:8000using tools likecurl, Postman, or your browser. -
View the details of incoming requests in the terminal interface.
-
Use the following keyboard controls:
- Right Arrow: Navigate to the next request.
- Left Arrow: Navigate to the previous request.
- Ctrl+C: Quit the application.
If you prefer not to build the application yourself, you can download a prebuilt binary from the Releases page.
-
Download the binary for your operating system.
-
Make the binary executable:
chmod +x http-request-printer
-
Remove the quarantine attribute (if applicable, on macOS):
xattr -d com.apple.quarantine ./http-request-printer[version]
-
Run the application:
./http-request-printer
