Documentation ¶
Index ¶
- Constants
- func CopyHeaders(dst, src http.Header)
- func CopyUrl(in *url.URL) *url.URL
- func HasHeaders(names []string, headers http.Header) bool
- func MultiReaderSeeker(cleanup CleanupFunc, readers ...io.ReadSeeker) *multiReaderSeek
- func NewBodyBuffer(input io.Reader) (*multiReaderSeek, error)
- func ParseUrl(inUrl string) (*url.URL, error)
- func RemoveHeaders(names []string, headers http.Header)
- type BasicAuth
- type CleanupFunc
- type HttpError
Constants ¶
View Source
const MEMORY_BUFFER_LIMIT = 1048576
Variables ¶
This section is empty.
Functions ¶
func CopyHeaders ¶
Copies http headers from source to destination does not overide, but adds multiple headers
func CopyUrl ¶
Provides update safe copy by avoiding shallow copying certain fields (like user data)
func HasHeaders ¶
Determines whether any of the header names is present in the http headers
func MultiReaderSeeker ¶
func MultiReaderSeeker(cleanup CleanupFunc, readers ...io.ReadSeeker) *multiReaderSeek
func NewBodyBuffer ¶
func ParseUrl ¶
Standard parse url is very generous, parseUrl wrapper makes it more strict and demands scheme and host to be set
func RemoveHeaders ¶
Removes the header with the given names from the headers map
Types ¶
type BasicAuth ¶
func ParseAuthHeader ¶
type CleanupFunc ¶
type CleanupFunc func() error
Click to show internal directories.
Click to hide internal directories.