Versions in this module Expand all Collapse all v2 v2.11.4 Mar 7, 2021 v2.11.3 Mar 7, 2021 Changes in this version + func ParseAuthorizationHeader(key string, r *http.Request, err error) (string, error) + func ParseCookie(key string, r *http.Request, e error) (string, error) + func ParseHeader(header string, r *http.Request, err error) (string, error) + func ParseJSONBody(key string, r *http.Request, err error) (string, error) + func ParseQuery(key string, r *http.Request, err error) (string, error) + func SetRequesterAddress(addr string) auth.Option + func SetRequesterBasicAuth(username, password string) auth.Option + func SetRequesterBearerToken(token string) auth.Option + func SetRequesterClientTransport(rt http.RoundTripper) auth.Option + func SetRequesterEndpoint(endpoint string) auth.Option + func SetRequesterHTTPClient(c *http.Client) auth.Option + func SetRequesterMethod(method string) auth.Option + func SetRequesterTLSConfig(tls *tls.Config) auth.Option + type HMACHasher struct + func NewHMACHasher(h crypto.Hash, key []byte) *HMACHasher + func (hm HMACHasher) Hash(str string) string + type Hasher interface + Hash func(string) string + type PlainTextHasher struct + func (p PlainTextHasher) Hash(str string) string + type Requester struct + AdditionalData func(r *http.Request) + Addr string + Client *http.Client + Endpoint string + KeepUnmarshalling bool + Marshal func(v interface{}) ([]byte, error) + Method string + Unmarshal func(data []byte, v interface{}) error + func NewRequester(addr string) *Requester + func (r *Requester) Do(ctx context.Context, data, review, status interface{}) (*http.Response, error) + func (r *Requester) DoWithf(ctx context.Context, f func(*http.Request), data, review, status interface{}) (*http.Response, error) + func (r *Requester) SetHeader(key, value string)