Documentation
¶
Index ¶
Constants ¶
View Source
const ( HTTPHeaderAccept = "Accept" HTTPHeaderContentMD5 = "Content-MD5" HTTPHeaderContentType = "Content-Type" HTTPHeaderDate = "Date" HTTPHeaderUserAgent = "User-Agent" )
HTTP header keys.
View Source
const ( HTTPHeaderCAPrefix = "X-Ca-" HTTPHeaderCAKey = "X-Ca-Key" HTTPHeaderCANonce = "X-Ca-Nonce" HTTPHeaderCASignature = "X-Ca-Signature" HTTPHeaderCASignatureHeaders = "X-Ca-Signature-Headers" HTTPHeaderCASignatureMethod = "X-Ca-Signature-Method" HTTPHeaderCATimestamp = "X-Ca-Timestamp" )
HTTP header keys used for Aliyun API gateway signature.
View Source
const ( HTTPContentTypeForm = "application/x-www-form-urlencoded" HTTPContentTypeMultipartForm = "multipart/form-data" HTTPContentTypeMultipartFormWithBoundary = "multipart/form-data; boundary=" HTTPContentTypeStream = "application/octet-stream" HTTPContentTypeJson = "application/json" HTTPContentTypeXml = "application/xml" HTTPContentTypeText = "text/plain" )
HTTP header content-type values.
View Source
const ( HTTPMethodGet = "GET" HTTPMethodPost = "POST" HTTPMethodPut = "PUT" HTTPMethodDelete = "DELETE" HTTPMethodPatch = "PATCH" HTTPMethodHead = "HEAD" HTTPMethodOptions = "OPTIONS" )
HTTP method values.
Variables ¶
This section is empty.
Functions ¶
func CurrentGMTDate ¶
func CurrentGMTDate() string
CurrentGMTDate returns the GMT date representation of the current time.
func CurrentTimeMillis ¶
func CurrentTimeMillis() string
CurrentTimeMillis returns the millisecond representation of the current time.
func HmacSHA256 ¶
HmacSHA256 returns the string encrypted with HmacSHA256 method.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.