httpEcho

command module
v0.0.0-...-a49a785 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2025 License: GPL-3.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

HTTP echo

Purpose of this service is to echo back HTTP request details in JSON format for the purpose of testing and debugging HTTP clients, loadbalancers and proxies.

Docker image

End image size is 2.53MB Available on Docker Hub: mirdinus/httpecho

docker run -d -p 8080:8080 mirdinus/httpecho

Response Fields

Field Description
method HTTP method (GET, POST, PUT, etc.)
uri Request URI path
headers Request headers as key-value pairs
body Request body content
queryParams URL query parameters
formParams Form data parameters
host Request host
protocol HTTP protocol version
referer Referer header value
requestTime Timestamp of the request (RFC3339 format)
auth Basic auth credentials (username, password, type) if provided, otherwise null
Environment Variables
Variable Description Default
BIND Address and port to bind the server to :8080

Mentions:

Docker small image build

Minimal Docker image with GO

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址