/sia

Serve HTTP/1.1, 2.0 and grpc

Primary LanguageGoApache License 2.0Apache-2.0

Serve It All

A simple HTTP/1.1, HTTP/2 and grpc server to be used as a backend for Istio.

Usage

PORT=8080 ./main

Via HTTP/1.1

curl -d "test" localhost:8080

Via HTTP/2 (untested, my debian is old)

curl -d "test" --http2 localhost:8080

Via gRPC with polyglot

echo '{"thing": "it"}' | java -jar polyglot.jar \
  --command=call \
  --endpoint localhost:8080 
  --full_method=doer.Doer/DoIt 
  --proto_discovery_root=doer 
  --use_tls=false