Skip to content

igolaizola/h2-stream

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

GitHub release Build Status Go Report Card license

h2-stream

HTTP2 client and server implementation in GO that holds a persistent data stream

  • Client takes data from standard input and forwards it to the server
  • Client forwards server responses to standard output
  • Server responds echoing the received data

TLS and non TLS options are both available

Usage

without TLS

launch server:

go run cmd/h2-stream/main.go serve --addr=localhost:8080 --tls=false

launch client:

go run cmd/h2-stream/main.go cli --addr=http://localhost:8080 --method=POST --data="BODY DATA"

with TLS

launch server:

go run cmd/h2-stream/main.go serve --addr=localhost:8080 --tls=true --cert=certs/cert.pem --key=certs/key.pem

launch client:

go run cmd/h2-stream/main.go cli --addr=https://localhost:8080 --method=POST --data="BODY DATA" --insecure

About

HTTP2 client and server implementation in GO that holds a persistent data stream

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages