Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sudorandom/example-connect-http3

An example of using gRPC over HTTP/3 with connect-go
https://github.com/sudorandom/example-connect-http3

Last synced: about 1 month ago
JSON representation

An example of using gRPC over HTTP/3 with connect-go

Awesome Lists containing this project

README

        

# Example of gRPC+HTTP/3

## TLS cert
This is the command used to create the self-signed cert:

```shell
openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 \
-subj "/C=DK/L=Copenhagen/O=kmcd/CN=local.kmcd.dev" \
-keyout cert.key -out cert.crt
```

## Starting the server (HTTP3 only)
```shell
go run server-single/main.go
```

## Starting the server (HTTP/1.1, HTTP/2 and HTTP/3)
```shell
go run server-multi/main.go
```

## Running the client (http stdlib)
```shell
go run client-http/main.go
```

## Running the client (connect)
```shell
go run client-connect/main.go
```