package body
import "github.com/google/martian/v3/body"
Package body allows for the replacement of message body on responses.
Index ¶
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.
func (*Modifier) ModifyResponse ¶
ModifyResponse sets the Content-Type header and overrides the response body.
func (*Modifier) SetBoundary ¶
SetBoundary set the boundary string used for multipart range responses.
Source Files ¶
- Version
- v3.3.2
- Published
- Mar 14, 2022
- Platform
- windows/amd64
- Imports
- 13 packages
- Last checked
- 1 hour ago –
Tools for package owners.