Documentation
¶
Index ¶
- func ExtractAllURLs(scriptURLs []string, clients []HTTPClient, baseURL string) map[string]map[string]bool
- func ExtractURLs(jsContent string, clients []HTTPClient) map[string]map[string]bool
- func FetchHTML(u string) (string, error)
- func FetchJS(u string) (string, error)
- func ParseScripts(htmlContent, baseURL string) []string
- func ResolveURL(u string) (string, error)
- type HTTPClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractAllURLs ¶
func ExtractURLs ¶
func ExtractURLs(jsContent string, clients []HTTPClient) map[string]map[string]bool
func ParseScripts ¶
func ResolveURL ¶
Types ¶
type HTTPClient ¶
type HTTPClient struct { Name string `json:"name"` MethodRe string `json:"methodRe"` URLRe string `json:"urlRe"` URLMethodIndex []int `json:"urlMethodIndex"` // contains filtered or unexported fields }
func LoadClients ¶
func LoadClients(configFile string) ([]HTTPClient, error)
Click to show internal directories.
Click to hide internal directories.