Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TypeKey for HTTP headers.
TypeKey = "Content-Type"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶ added in v1.287.0
type Content struct {
// contains filtered or unexported fields
}
Content creates types from media types.
func NewContent ¶ added in v1.287.0
NewContent with an encoding.
func (*Content) NewFromMedia ¶ added in v1.287.0
NewFromMedia for content.
func (*Content) NewFromRequest ¶ added in v1.287.0
NewFromRequest for content.
func (*Content) NewHandler ¶ added in v1.287.0
func (c *Content) NewHandler(prefix string, handler Handler) func(res http.ResponseWriter, req *http.Request)
NewHandler for content.
Click to show internal directories.
Click to hide internal directories.