How asciimoo/wuzz works
Wuzz is an interactive terminal HTTP inspector: users edit or load cURL-like request details, submit them, inspect formatted responses, and save requests or responses. wuzz.go is the central application and request orchestrator; configuration, command dispatch, status display, and content-specific formatting are distinct supporting layers. The excerpts establish HTTP dispatch and formatter selection behavior; broader UI wiring and some persistence details are supported only by the README, so those links cite it.
Main entry points: wuzz.go Wuzz application · formatter.go Format selection · commands.go Key commands · config.go Settings and bindings
Components 18
Terminal interaction
- Wuzz application
wuzz.go - Key commands
commands.go - Key mapping
keys.go
Request and response
- Request editor
wuzz.go - Header suggestions
request-headers.go - Request dispatch
wuzz.go - Response capture
wuzz.go - Request history
wuzz.go
Response presentation
- Format selection
formatter/formatter.go - Text formatting
formatter/text.go - HTML formatting
formatter/html.go - JSON formatting
formatter/json.go - Binary formatting
formatter/binary.go
Configuration and state
- Settings and bindings
config/config.go - Status display
status-line.go
Other components
- CLI user
- HTTP endpoint
- Request/response files
Connections 18
- CLI user → Wuzz application: operates
README.md - Wuzz application → Key commands: dispatches commands
commands.go - Wuzz application → Key mapping: maps keys
keys.go - CLI user → Request editor: edits request
README.md - Request editor → Header suggestions: uses suggestions
- Wuzz application → Request dispatch: submits request
README.md - Request dispatch → HTTP endpoint: sends HTTP request
wuzz.go - Request dispatch → Response capture: receives response
wuzz.go - Wuzz application → Request history: tracks requests
wuzz.go - Response capture → Format selection: selects formatter
- Format selection → Text formatting: chooses by type
formatter/formatter.go - Format selection → HTML formatting: chooses by type
formatter/formatter.go - Format selection → JSON formatting: chooses by type
formatter/formatter.go - Format selection → Binary formatting: chooses by type
formatter/formatter.go - Wuzz application → Settings and bindings: uses settings
wuzz.go - Format selection → Settings and bindings: checks settings
formatter/formatter.go - Wuzz application → Status display: refreshes status
wuzz.go - Key commands → Request/response files: saves or loads
commands.go