Versions in this module Expand all Collapse all v0 v0.7.0 Dec 22, 2014 Changes in this version + const DefaultBufferBytes + const DefaultMaxSizeBytes + const DefaultMemBufferBytes + func CopyHeaders(dst, src http.Header) + func CopyUrl(in *url.URL) *url.URL + func HasHeaders(names []string, headers http.Header) bool + func MustParseUrl(inUrl string) *url.URL + func NewHttpResponse(request *http.Request, statusCode int, body []byte, contentType string) *http.Response + func NewJsonResponse(request *http.Request, statusCode int, message interface{}) *http.Response + func NewMultiReaderSeeker(length int64, cleanup CleanupFunc, readers ...io.ReadSeeker) *multiReaderSeek + func NewTextResponse(request *http.Request, statusCode int, body string) *http.Response + func ParseUrl(inUrl string) (*url.URL, error) + func RawPath(in string) (string, error) + func RawURL(request *http.Request) string + func RemoveHeaders(names []string, headers http.Header) + type BasicAuth struct + Password string + Username string + func ParseAuthHeader(header string) (*BasicAuth, error) + func (ba *BasicAuth) String() string + type BodyBufferOptions struct + MaxSizeBytes int64 + MemBufferBytes int64 + type CleanupFunc func() error + type MaxReader struct + Max int64 + N int64 + R io.Reader + func (r *MaxReader) Read(p []byte) (int, error) + type MaxSizeReachedError struct + MaxSize int64 + func (e *MaxSizeReachedError) Error() string + type MultiReader interface + TotalSize func() (int64, error) + func NewBodyBuffer(input io.Reader) (MultiReader, error) + func NewBodyBufferWithOptions(input io.Reader, o BodyBufferOptions) (MultiReader, error)