Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderAccept = "Accept" HeaderCacheControl = "Cache-Control" HeaderContentDisposition = "Content-Disposition" HeaderContentEncoding = "Content-Encoding" HeaderContentLanguage = "Content-Language" HeaderContentType = "Content-Type" HeaderAuthorization = "Authorization" HeaderWebsiteRedirectLocation = "Website-Redirect-Location" )
set of supported api header keys
View Source
const (
MediaTypeJSON = "application/json"
)
set of supported api media types
Variables ¶
This section is empty.
Functions ¶
func ContentTypeByExtension ¶
ContentTypeByExtension returns the content type determined by the file extension
Types ¶
type ErrUnexpectedStatusCode ¶
ErrUnexpectedStatusCode is an unexpected status code error
func (ErrUnexpectedStatusCode) Error ¶
func (err ErrUnexpectedStatusCode) Error() string
Click to show internal directories.
Click to hide internal directories.