Documentation ¶
Overview ¶
Package helps parse http headers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ContentType = struct { ApplicationZip string TextCsv string TextPlain string ApplicationOctetStream string ApplicationJSON string MultipartFormData string }{ "application/zip", "text/csv", "text/plain", "application/octet-stream", "application/json", "multipart/form-data", }
ContentType describes "Content-Type"
Functions ¶
func GetContentTypeByFileName ¶
GetContentTypeByFileName returns "Content-Type" by file name
func HasContentType ¶
HasContentType determines whether the request `content-type` includes a server-acceptable mime-type
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.