Documentation ¶
Index ¶
Constants ¶
View Source
const (
READ_LIMIT int64 = 128 * 1024
)
Variables ¶
View Source
var (
AuthRetryNeeded = errors.New("retry request with authentication")
)
Functions ¶
func ParseList ¶ added in v1.1.1
ParseList parses a comma-separated list of values as described by RFC 2068 and returns list elements.
Lifted from https://code.google.com/p/gorilla/source/browse/http/parser/parser.go which was ported from urllib2.parse_http_list, from the Python standard library.
func ParsePairs ¶ added in v1.1.1
ParsePairs extracts key/value pairs from a comma-separated list of values as described by RFC 2068 and returns a map[key]value. The resulting values are unquoted. If a list element doesn't contain a "=", the key is the element itself and the value is an empty string.
Lifted from https://code.google.com/p/gorilla/source/browse/http/parser/parser.go
Types ¶
type DigestTransport ¶ added in v0.2.0
type DigestTransport struct {
// contains filtered or unexported fields
}
func NewDigestTransport ¶ added in v1.0.0
func NewDigestTransport(username, password string, transport http.RoundTripper) *DigestTransport
NewRequest creates a new DigestTransport object
Click to show internal directories.
Click to hide internal directories.