Expand description
Contains the ModifyRequestFn, ModifyResponseFn, RequestMutation, and
ResponseMutation types used to attach request/response mutation hooks to an
HttpAcl.
Structs§
- Request
Mutation - An owned, mutable view of an outgoing request’s headers and body, handed to a
ModifyRequestFn. - Response
Mutation - An owned, mutable view of an incoming response’s status, headers, and body,
handed to a
ModifyResponseFn.
Type Aliases§
- Modify
Request Fn - A function that mutates an outgoing request’s headers and/or body before it is sent, e.g. to inject a secret or authentication header.
- Modify
Response Fn - A function that mutates an incoming response’s status, headers, and/or body before the caller sees it, e.g. to redact sensitive fields.