Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

recrsn/httpeek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTPeek

HTTPeek is a terminal-based HTTP/WebSocket debugging proxy

Features

  • Proxies both HTTP and WebSocket traffic to a specified target
  • Terminal UI with request list and detailed inspection
  • Real-time monitoring of WebSocket messages
  • View request/response headers and bodies
  • Color-coded display of different HTTP methods and status codes
  • Syntax highlighting for JSON, XML, and HTML responses
  • Request filtering and search capabilities
  • WebSocket message real-time viewer
  • Graceful handling of binary data
  • Performance metrics for request/response timing

Usage

httpeek -listen localhost:8080 -target https://example.com

Command Line Options

  • -listen: Address to listen on (default: localhost:8080)
  • -target: Target host to forward requests to (required)
  • -verbose: Enable verbose logging
  • -no-color: Disable colored output
  • -help: Show help information

UI Navigation

Global Keyboard Shortcuts

  • Arrow keys / hjkl: Navigate tabs and lists
  • 1/2/3/4: Switch between Requests, Headers, Body, and WebSocket tabs
  • f: Toggle filter panel
  • c: Clear all requests
  • ?: Toggle help
  • q / Ctrl+C: Quit

WebSocket Tab Shortcuts

  • f: Toggle follow mode (auto-scroll to new messages)
  • b: Toggle binary message display
  • Home/End: Jump to beginning/end of messages
  • Ctrl+F: Search in WebSocket messages

Filter Panel

  • Tab/Shift+Tab: Navigate between filter fields
  • Enter: Apply filters
  • Esc: Close filter panel

Building

# Download dependencies
go mod tidy

# Build the executable
go build -o httpeek

Installation

# Install from source
go install github.com/recrsn/httpeek@latest

Examples

Proxying a Local Development Server

httpeek -listen localhost:9090 -target http://localhost:3000

Monitoring API Requests

httpeek -target https://api.example.com

License

MIT

About

An interactive TUI http proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages