Documentation ¶
Overview ¶
Package body allows for the replacement of message body on responses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Modifier ¶
type Modifier struct {
// contains filtered or unexported fields
}
Modifier substitutes the body on an HTTP response.
func NewModifier ¶
NewModifier constructs and returns a body.Modifier.
func (*Modifier) ModifyRequest ¶
ModifyRequest sets the Content-Type header and overrides the request body.
Click to show internal directories.
Click to hide internal directories.