Documentation ¶
Index ¶
- func DecompressHttpResponse(body io.ReadCloser, contentEncoding string) (io.ReadCloser, error)
- func DefaultClient() *http.Client
- func Firefox117Client() *http.Client
- func Get(URL string) (string, error)
- func GetAsBytes(URL string) ([]byte, error)
- func GetAsBytesWithClient(client *http.Client, URL string, referer string) ([]byte, error)
- func GetAsBytesWithHeaders(URL string, headers map[string]string) ([]byte, error)
- func GetSizeFromHeaders(headers *http.Header) (int64, error)
- func GetWithCookies(URL string, jar *Myjar) (string, error)
- func GetWithHeaders(URL string, headers map[string]string) (string, error)
- func Headers(URL, refer string) (http.Header, error)
- func PostAsBytes(URL string) ([]byte, error)
- func PostAsBytesWithHeaders(URL string, headers map[string]string, body io.Reader) ([]byte, error)
- func Request(method string, URL string, headers map[string]string, body io.Reader) (*http.Response, error)
- func Size(URL, refer string) (int64, error)
- type LogRedirects
- type Myjar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecompressHttpResponse ¶ added in v1.2.57
func DecompressHttpResponse(body io.ReadCloser, contentEncoding string) (io.ReadCloser, error)
DecompressHttpResponse to read it's contents
func Firefox117Client ¶ added in v1.2.57
Firefox117Client tries to impersonate firefox117 https://github.com/lwthiker/curl-impersonate/blob/main/firefox/curl_ff117
func GetAsBytesWithClient ¶ added in v1.2.57
GetAsBytesWithClient content as bytes using a custom client
func GetAsBytesWithHeaders ¶
GetAsBytesWithHeaders content as bytes
func GetSizeFromHeaders ¶
GetSizeFromHeaders of http.Response
func GetWithCookies ¶ added in v1.2.21
GetWithCookies content as string
func GetWithHeaders ¶
GetWithHeaders content as string
func PostAsBytesWithHeaders ¶
PostAsBytesWithHeaders content as bytes
Types ¶
type LogRedirects ¶
type LogRedirects struct {
Transport http.RoundTripper
}
LogRedirects to sanitize "Location" URLs
Click to show internal directories.
Click to hide internal directories.