Documentation ¶
Index ¶
Constants ¶
View Source
const ( RequestsXTokenHeader = "X-Token" RequestsAccept = "Accept" RequestsContentType = "Centent-Type" RequestsContentLength = "Content-Length" RequestsOrigin = "Origin" RequestsForwarded = "Forwarded" RequestsXForwardedFor = "X-Forwarded-For" RequestsXForwardedHost = "X-Forwarded-Host" RequestsXForwardedProto = "X-Forwarded-Proto" RequestsXMessage = "X-Message" RequestsXVia = "Via" )
View Source
const ( ResponseXTokenHeader = "X-Token" ResponseAllowOrigin = "Access-Control-Allow-Origin" ResponseAllowMethods = "Access-Control-Allow-Methods" ResponseAllowHeaders = "Access-Control-Allow-Headers" ResponseAllowCredentials = "Access-Control-Allow-Credentials" ResponseExposeHeaders = "Access-Control-Expose-Headers" ResponseAllowMaxAge = "Access-Control-Max-Age" )
Variables ¶
View Source
var AllowMethods = []string{ http.MethodGet, http.MethodPost, http.MethodOptions, }
View Source
var RequestsHeaderList = []string{ RequestsXTokenHeader, RequestsAccept, RequestsContentType, RequestsContentLength, RequestsOrigin, RequestsForwarded, RequestsXForwardedFor, RequestsXForwardedHost, RequestsXForwardedProto, RequestsXMessage, RequestsXVia, }
View Source
var ResponseHeaderList = []string{ ResponseXTokenHeader, ResponseAllowOrigin, ResponseAllowMethods, ResponseAllowHeaders, ResponseAllowCredentials, ResponseExposeHeaders, ResponseAllowMaxAge, }
Functions ¶
func IsAllowMethods ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.