Documentation ¶
Index ¶
Constants ¶
View Source
const ( RequestID = "x-kit-request-id" // http请求id TraceID = "x-kit-trace-id" // trace-id InternalToken = "x-kit-authorization" // 内部令牌 IsWebsocket = "x-kit-websocket" // http请求设置 RemoteAddr = "x-kit-remote-addr" // 远程地址 UserTerminal = "x-kit-user-terminal" // 使用终端、平台 // AuthorizationKey auth AuthorizationKey = "Authorization" // WebsocketConnection websocket WebsocketConnection = "Connection" WebsocketUpgrade = "Upgrade" WebsocketSecVersion = "Sec-Websocket-Version" WebsocketSecKey = "Sec-Websocket-Key" // ContentType header ContentType = "Content-Type" ContentTypeJSON = "application/json" ContentTypeJSONUtf8 = "application/json; charset=utf-8" ContentTypeProto = "application/proto" ContentTypeProtobuf = "application/x-protobuf" ContentTypeFormURLEncoded = "application/x-www-form-urlencoded" ContentTypeMultipartForm = "multipart/form-data" // Accept header Accept = "Accept" AcceptJSON = "application/json" AcceptJSONUtf8 = "application/json; charset=utf-8" AcceptProto = "application/proto" AcceptProtobuf = "application/x-protobuf" )
View Source
const ( // PlatformGoogleAppEngine When running on Google App Engine. Trust X-Appengine-Remote-Addr // for determining the client's IP PlatformGoogleAppEngine = "X-Appengine-Remote-Addr" // PlatformCloudflare When using Cloudflare's CDN. Trust CF-Connecting-IP for determining // the client's IP PlatformCloudflare = "CF-Connecting-IP" )
Trusted platforms
Variables ¶
This section is empty.
Functions ¶
func ContainsValue ¶
ContainsValue . From websocket.tokenListContainsValue
func SetRequestID ¶
SetRequestID 设置RequestID
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.