HUB
Sign inSign up

mirdinus/httpecho

By mirdinus

•Updated 12 months ago

This server returns any request made to it in JSON

Image
0

397

mirdinus/httpecho repository overview

⁠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

FieldDescription
methodHTTP method (GET, POST, PUT, etc.)
uriRequest URI path
headersRequest headers as key-value pairs
bodyRequest body content
queryParamsURL query parameters
formParamsForm data parameters
hostRequest host
protocolHTTP protocol version
refererReferer header value
requestTimeTimestamp of the request (RFC3339 format)
authBasic auth credentials (username, password, type) if provided, otherwise null
⁠Environment Variables
VariableDescriptionDefault
BINDAddress and port to bind the server to:8080

⁠Mentions:

⁠Docker small image build

Minimal Docker image with GO⁠

Tag summary

Content type

Image

Digest

sha256:ad1266e61…

Size

2.4 MB

Last updated

12 months ago

docker pull mirdinus/httpecho
⌂ 换网址