Skip to content

iqltd/go-h2-yourself

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go H2 yourself!

Dumb HTTP2 server for quick and dirty tests. Based on the example from this blog

Prerequisite

HTTP2 enforces HTTPS. In order to generate the private key and certificate run:

openssl req -newkey rsa:2048 -nodes -keyout server.key -x509 -days 365 -out server.crt

Running

go run h2.go -port 8001

(the port option can be skipped; the default port is 8000)

Current version

Simulating a 204 (No Content) response with or without specifying a "Content-Length" header:

  • when the path is /with-content-length, it will return a Content-Length response header (equal to 0)
  • otherwise, no Content-Length is returned

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages