package body
import "github.com/google/martian/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.
Source Files ¶
- Version
- v2.0.0-beta+incompatible
- Published
- Aug 14, 2015
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 4 hours ago –
Tools for package owners.