Documentation ¶
Index ¶
Constants ¶
View Source
const (
// JSONMediaType for content.
JSONMediaType = "application/json"
)
Variables ¶
View Source
var ( // TypeKey for HTTP headers. TypeKey = "Content-Type" // ErrInvalidMarshaller for content. ErrInvalidMarshaller = errors.New("invalid marshaller") )
Functions ¶
func AddJSONHeader ¶ added in v1.243.0
AddJSONHeader for content.
Types ¶
Click to show internal directories.
Click to hide internal directories.