gotten: github.com/Hexilee/gotten/headers Index | Files

package headers

import "github.com/Hexilee/gotten/headers"

Index

Package Files

headers.go

Constants

const (
    HeaderAccept              = "Accept"
    HeaderAcceptEncoding      = "Accept-Encoding"
    HeaderAllow               = "Allow"
    HeaderAuthorization       = "Authorization"
    HeaderContentDisposition  = "Content-Disposition"
    HeaderContentEncoding     = "Content-Encoding"
    HeaderContentLength       = "Content-Length"
    HeaderContentType         = "Content-Type"
    HeaderCookie              = "Cookie"
    HeaderSetCookie           = "Set-Cookie"
    HeaderIfModifiedSince     = "If-Modified-Since"
    HeaderLastModified        = "Last-Modified"
    HeaderLocation            = "Location"
    HeaderUpgrade             = "Upgrade"
    HeaderVary                = "Vary"
    HeaderWWWAuthenticate     = "WWW-Authenticate"
    HeaderXForwardedFor       = "X-Forwarded-For"
    HeaderXForwardedProto     = "X-Forwarded-Proto"
    HeaderXForwardedProtocol  = "X-Forwarded-Protocol"
    HeaderXForwardedSsl       = "X-Forwarded-Ssl"
    HeaderXUrlScheme          = "X-Url-Scheme"
    HeaderXHTTPMethodOverride = "X-HTTP-Method-Override"
    HeaderXRealIP             = "X-Real-IP"
    HeaderXRequestID          = "X-Request-ID"
    HeaderServer              = "Server"
    HeaderOrigin              = "Origin"

    // Access control
    HeaderAccessControlRequestMethod    = "Access-Control-Request-Method"
    HeaderAccessControlRequestHeaders   = "Access-Control-Request-Headers"
    HeaderAccessControlAllowOrigin      = "Access-Control-Allow-Origin"
    HeaderAccessControlAllowMethods     = "Access-Control-Allow-Methods"
    HeaderAccessControlAllowHeaders     = "Access-Control-Allow-Headers"
    HeaderAccessControlAllowCredentials = "Access-Control-Allow-Credentials"
    HeaderAccessControlExposeHeaders    = "Access-Control-Expose-Headers"
    HeaderAccessControlMaxAge           = "Access-Control-Max-Age"

    // Security
    HeaderStrictTransportSecurity = "Strict-Transport-Security"
    HeaderXContentTypeOptions     = "X-Content-Type-Options"
    HeaderXXSSProtection          = "X-XSS-Protection"
    HeaderXFrameOptions           = "X-Frame-Options"
    HeaderContentSecurityPolicy   = "Content-Security-Policy"
    HeaderXCSRFToken              = "X-CSRF-Token"
)
const (
    MIMEApplicationJSON                  = "application/json"
    MIMEApplicationJSONCharsetUTF8       = MIMEApplicationJSON + "; " + charsetUTF8
    MIMEApplicationJavaScript            = "application/javascript"
    MIMEApplicationJavaScriptCharsetUTF8 = MIMEApplicationJavaScript + "; " + charsetUTF8
    MIMEApplicationXML                   = "application/xml"
    MIMEApplicationXMLCharsetUTF8        = MIMEApplicationXML + "; " + charsetUTF8
    MIMETextXML                          = "text/xml"
    MIMETextXMLCharsetUTF8               = MIMETextXML + "; " + charsetUTF8
    MIMEApplicationZip                   = "application/zip"
    MIMEApplicationPDF                   = "application/pdf"
    MIMEApplicationForm                  = "application/x-www-form-urlencoded"
    MIMEApplicationProtobuf              = "application/protobuf"
    MIMEApplicationMsgpack               = "application/msgpack"
    MIMETextHTML                         = "text/html"
    MIMETextHTMLCharsetUTF8              = MIMETextHTML + "; " + charsetUTF8
    MIMETextPlain                        = "text/plain"
    MIMETextPlainCharsetUTF8             = MIMETextPlain + "; " + charsetUTF8
    MIMEMultipartForm                    = "multipart/form-data"
    MIMEOctetStream                      = "application/octet-stream"
    MIEMImageGIF                         = "image/gif"
    MIEMImageJPEG                        = "image/jpeg"
)

Package headers is imported by 3 packages. Updated 2018-10-08. Refresh now. Tools for package owners.