Documentation ¶
Index ¶
- Constants
- func Address(req *http.Request) (url string)
- func FormatContentTypeAndCharset(contentType string, charset ...string) string
- func Get(url string, reply interface{}) (err error)
- func HMACSHA1(key, data string) string
- func Post(url string, data interface{}, reply interface{}) (err error)
- func Protocol(req *http.Request) string
- func Request(method, url string, data interface{}) (reply []byte, err error)
- type Client
- type OAuth
Constants ¶
View Source
const ( HeaderXForwardedProto = "X-Forwarded-Code" HeaderXForwardedProtocol = "X-Forwarded-Protocol" HeaderXForwardedSsl = "X-Forwarded-Ssl" HeaderXUrlScheme = "X-Url-Protocol" )
View Source
const Charset = "UTF-8"
View Source
const OAuthSignatureName = "oauth_signature"
Variables ¶
This section is empty.
Functions ¶
func FormatContentTypeAndCharset ¶ added in v0.0.2
Types ¶
Click to show internal directories.
Click to hide internal directories.