Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRequestMutators = []RequestMutator{clientReqHeadersFromMD()}
DefaultRequestMutators are used for every outgoing request.
View Source
var DefaultResponseMutators = []ResponseMutator{}
DefaultResponseMutators are used for every received response.
Functions ¶
This section is empty.
Types ¶
type RequestMiddleware ¶
type RequestMiddleware struct {
// contains filtered or unexported fields
}
RequestMiddleware processes HTTP requests and responses vs provided ClientOptions.
func NewMiddlewareGRPC ¶
func NewMiddlewareGRPC(opts []grpc.CallOption) (*RequestMiddleware, error)
NewMiddlewareGRPC creates new RequestMiddleware from gRPC call options.
func (*RequestMiddleware) ProcessRequest ¶
ProcessRequest processes outgoing HTTP requests.
func (*RequestMiddleware) ProcessResponse ¶
ProcessResponse processes received HTTP responses.
type RequestMutator ¶
RequestMutator processes and/or mutates outgoing HTTP requests.
Click to show internal directories.
Click to hide internal directories.