We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 057c948 commit f931b6fCopy full SHA for f931b6f
go/grpcweb/DOC.md
@@ -15,6 +15,7 @@ protocol specification.
15
Here's an example of how to use it inside an existing gRPC Go server on a
16
separate http.Server that serves over TLS:
17
18
+```go
19
grpcServer := grpc.Server()
20
wrappedGrpc := grpcweb.WrapServer(grpcServer)
21
tlsHttpServer.Handler = http.HandlerFunc(func(resp http.ResponseWriter, req *http.Request) {
@@ -25,7 +26,7 @@ separate http.Server that serves over TLS:
25
26
// Fall back to other servers.
27
http.DefaultServeMux.ServeHTTP(resp, req)
28
})
-
29
+```
30
If you'd like to have a standalone binary, please take a look at `grpcwebproxy`.
31
32
## Usage
0 commit comments