Documentation ¶
Index ¶
- func DefaultClient() *http.Client
- func ExtractHLS(URL string, headers map[string]string) (map[string]*static.Stream, error)
- func Get(URL string) (string, error)
- func GetAsBytes(URL 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 ParseHLSMediaStream(mediaStr *string, URL string) ([]*static.URL, []byte, error)
- func PostAsBytes(URL string) ([]byte, error)
- func PostAsBytesWithHeaders(URL string, headers map[string]string) ([]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 ExtractHLS ¶ added in v1.2.4
ExtractHLS contents of a file/URL into the internal stream structure. If the playlist contains multiple streams then each stream will be represented as a unique stream internally
func GetAsBytesWithHeaders ¶
GetAsBytesWithHeaders content as string
func GetSizeFromHeaders ¶
GetSizeFromHeaders of http.Response
func GetWithCookies ¶ added in v1.2.21
GetWithCookies content as string
func GetWithHeaders ¶
GetWithHeaders content as string
func ParseHLSMediaStream ¶ added in v1.2.4
ParseHLSMediaStream into URLs and if found it's key
func PostAsBytesWithHeaders ¶
PostAsBytesWithHeaders content as string
Types ¶
type LogRedirects ¶
type LogRedirects struct {
Transport http.RoundTripper
}
LogRedirects to sanitize "Location" URLs
Click to show internal directories.
Click to hide internal directories.