tools

package
v0.0.0-...-98ce542 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CookiesFromRaw

func CookiesFromRaw(rawCookie string, domain string) []*http.Cookie

CookiesFromRaw parse a cookie in string format to []*http.Cookie

func DeepGetCookie

func DeepGetCookie(resp *http.Response, name string) (string, string, bool)

DeepGetCookie check all responses in the redirect and return the first matching url and cookie

func DeepGetHeader

func DeepGetHeader(resp *http.Response, key string) (string, string, bool)

DeepGetHeader check all responses in the redirect and return the first matching url and header

func FileFromDisk

func FileFromDisk(filePath string) (*zhttp.File, error)

FileFromDisk read file from disk and detect mime with filename

func SaveToFile

func SaveToFile(r io.Reader, filename string) error

SaveToFile save reader's content to file

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL