https://github.com/igolaizola/h2-stream
HTTP2 client and server implementation in GO that holds a persistent data stream
https://github.com/igolaizola/h2-stream
go golang http2 http2-client http2-server
Last synced: 6 months ago
JSON representation
HTTP2 client and server implementation in GO that holds a persistent data stream
- Host: GitHub
- URL: https://github.com/igolaizola/h2-stream
- Owner: igolaizola
- License: apache-2.0
- Created: 2018-08-03T06:22:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T05:08:45.000Z (about 2 years ago)
- Last Synced: 2024-06-20T12:48:35.691Z (11 months ago)
- Topics: go, golang, http2, http2-client, http2-server
- Language: Go
- Size: 1.76 MB
- Stars: 8
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/igolaizola/h2-stream/releases)
[](https://travis-ci.com/igolaizola/h2-stream)
[](http://goreportcard.com/report/igolaizola/h2-stream)
[](https://github.com/igolaizola/h2-stream/blob/master/LICENSE.md)# 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 dataTLS 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
```