Skip to content

Commit f931b6f

Browse files
Update DOC.md (#1148)
* Update DOC.md * Update go/grpcweb/DOC.md Co-authored-by: Johan Brandhorst-Satzkorn <[email protected]> Co-authored-by: Johan Brandhorst-Satzkorn <[email protected]>
1 parent 057c948 commit f931b6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

go/grpcweb/DOC.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ protocol specification.
1515
Here's an example of how to use it inside an existing gRPC Go server on a
1616
separate http.Server that serves over TLS:
1717

18+
```go
1819
grpcServer := grpc.Server()
1920
wrappedGrpc := grpcweb.WrapServer(grpcServer)
2021
tlsHttpServer.Handler = http.HandlerFunc(func(resp http.ResponseWriter, req *http.Request) {
@@ -25,7 +26,7 @@ separate http.Server that serves over TLS:
2526
// Fall back to other servers.
2627
http.DefaultServeMux.ServeHTTP(resp, req)
2728
})
28-
29+
```
2930
If you'd like to have a standalone binary, please take a look at `grpcwebproxy`.
3031

3132
## Usage

0 commit comments

Comments
 (0)