Skip to main content

Module mutation

Module mutation 

Source
Expand description

Contains the ModifyRequestFn, ModifyResponseFn, RequestMutation, and ResponseMutation types used to attach request/response mutation hooks to an HttpAcl.

Structs§

RequestMutation
An owned, mutable view of an outgoing request’s headers and body, handed to a ModifyRequestFn.
ResponseMutation
An owned, mutable view of an incoming response’s status, headers, and body, handed to a ModifyResponseFn.

Type Aliases§

ModifyRequestFn
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.
ModifyResponseFn
A function that mutates an incoming response’s status, headers, and/or body before the caller sees it, e.g. to redact sensitive fields.