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.3 (latest)
- Published
- Aug 16, 2022
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 6 hours ago –
Tools for package owners.