WithWriteContentLength returns a ServeMuxOption to enable writing content length on non-streaming responses
()
| 287 | |
| 288 | // WithWriteContentLength returns a ServeMuxOption to enable writing content length on non-streaming responses |
| 289 | func WithWriteContentLength() ServeMuxOption { |
| 290 | return func(serveMux *ServeMux) { |
| 291 | serveMux.writeContentLength = true |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | // WithHealthEndpointAt returns a ServeMuxOption that will add an endpoint to the created ServeMux at the path specified by endpointPath. |
| 296 | // When called the handler will forward the request to the upstream grpc service health check (defined in the |
no outgoing calls