Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HeaderContentType constant HeaderContentType = "Content-Type" // HeaderAcceptEncoding constant HeaderAcceptEncoding = "Accept-Encoding" // HeaderContentEncoding constant HeaderContentEncoding = "Content-Encoding" // MIMEApplicationJSON constant MIMEApplicationJSON = "application/json" // MIMEApplicationJSONCharsetUTF8 constant MIMEApplicationJSONCharsetUTF8 = MIMEApplicationJSON + "; " + charsetUTF8 // HeaderXContentTypeOptions constant HeaderXContentTypeOptions = "X-Content-Type-Options" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPError ¶
type HTTPError struct { Code int Message interface{} }
HTTPError represents an error that occurred while handling a request.
func NewHTTPError ¶
NewHTTPError creates a new HTTPError instance.
Click to show internal directories.
Click to hide internal directories.