WithOutgoingTrailerMatcher returns a ServeMuxOption representing a headerMatcher for outgoing response from gateway. This matcher will be called with each header in response trailer metadata. If matcher returns true, that header will be passed to http response returned from gateway. To transform th
(fn HeaderMatcherFunc)
| 217 | // passed to http response returned from gateway. To transform the header before passing to response, |
| 218 | // matcher should return the modified header. |
| 219 | func WithOutgoingTrailerMatcher(fn HeaderMatcherFunc) ServeMuxOption { |
| 220 | return func(mux *ServeMux) { |
| 221 | mux.outgoingTrailerMatcher = fn |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | // WithMetadata returns a ServeMuxOption for passing metadata to a gRPC context. |
| 226 | // |
no outgoing calls