Skip to content

soverenio/go-echo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-echo

Docker Pulls

go-echo is a small HTTP server that echos the request headers and body back at a client as JSON in the response body.

http/2

go-echo supports HTTP/2 over cleartext TCP (h2c).

Examples

Make HTTP/1.1 GET and/or POST request with upgrade to h2c. This is a common way for case when the server supports h2c but the client does not know that.

curl --http2 -v 127.0.0.1:9001/get
curl --http2 -v 127.0.0.1:9001/post --data '{"username":"xyz","password":"xyz"}'

Make HTTP/2 GET and/or POST request with prior knowledge of h2c. This is a common way for case when the client knows that the server supports h2c.

curl --http2 --http2-prior-knowledge -v 127.0.0.1:9001/get
curl --http2 --http2-prior-knowledge -v 127.0.0.1:9001/post --header "Content-Type: application/json" --data '{"username":"xyz","password":"xyz"}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages