Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = &jsonMarshaler{}
Default is the default request marshaler.
Functions ¶
func Register ¶
func Register(m RequestMarshaler) error
Register registers the request marshaler to the registry.
Types ¶
type RequestMarshaler ¶
RequestMarshaler is the interface that marshals the HTTP request body.
func Get ¶
func Get(mediaType string) RequestMarshaler
Get returns the request marshaler for the given media type.
If the marshaler is not found, returns the Default.
Click to show internal directories.
Click to hide internal directories.