Documentation
¶
Index ¶
- func CalculateDelayWithJitter(baseDelaySeconds int, jitterPercent int) time.Duration
- func GetEntriesFromTXTFiles(paths []string) ([]string, error)
- func IsHostInScope(baseURL string, targetURL string) bool
- func IsStaticAsset(url string) bool
- func IsTrailingSlashRedirect(from, to string) bool
- func ParseResponseCodes(responseCodes string) (map[int]bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateDelayWithJitter ¶ added in v0.0.257
func GetEntriesFromTXTFiles ¶ added in v0.0.83
GetEntriesFromTXTFiles returns a list of entries from a list of text files
func IsHostInScope ¶ added in v0.0.283
IsHostInScope reports whether targetURL is the same host as baseURL or a subdomain (child) of it. The comparison is case-insensitive and ignores the port. Scope is anchored on the FULL base host, so children are allowed while the apex domain and sibling subdomains are excluded. For a base of www.example.com this admits www.example.com and app.www.example.com, but not example.com (parent) or careers.example.com (sibling). IP addresses have no subdomain hierarchy, so they require an exact match. This is the shared scoping check used by the ignore-cross-domain flag across discovery commands.
func IsStaticAsset ¶ added in v0.0.83
IsStaticAsset returns true if the URL is a static asset, false otherwise
func IsTrailingSlashRedirect ¶ added in v0.0.97
IsTrailingSlashRedirect checks if the redirect is just adding a trailing slash. Default ports are normalized so https://host:443/path and https://host/path/ are treated as the same origin.
Types ¶
This section is empty.