Documentation ¶
Index ¶
- Constants
- func CheckCSP(url, ua string, rCSP *regexp.Regexp, client *http.Client) ([]string, error)
- func CompileRegex(regex string) *regexp.Regexp
- func ParseBodyCSP(body io.Reader, rCSP *regexp.Regexp) []string
- func ParseCSP(input string, r *regexp.Regexp) []string
- func PrepareURL(inputURL string) (string, error)
- type Runner
Constants ¶
View Source
const ( TLSHandshakeTimeout = 10 KeepAlive = 30 DomainRegex = `(?m)(?i)(?:\*\.|)([a-z][a-z_0-9.-]+\.[a-z]+)` MinURLLength = 4 )
Variables ¶
This section is empty.
Functions ¶
func CompileRegex ¶
func ParseBodyCSP ¶
ParseBodyCSP returns the list of domains parsed from the CSP found in the meta tag of the input HTML body.
func PrepareURL ¶
PrepareURL takes as input a string and prepares the input URL in order to get the favicon icon.
Types ¶
Click to show internal directories.
Click to hide internal directories.