Documentation
¶
Index ¶
Constants ¶
View Source
const (
ErrInvalidContentTypeField = "Content-Type"
)
Variables ¶
View Source
var ( ErrCodeNilRequest string ErrCodeInvalidContentType string ErrCodeInvalidBodyType string )
Functions ¶
func CheckContentType ¶ added in v0.12.2
CheckContentType checks if the content type is JSON
Parameters:
- r: The HTTP request
Returns:
- bool: True if the content type is JSON, false otherwise
Types ¶
Click to show internal directories.
Click to hide internal directories.