Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Headers ¶
func (*Headers) MarshalJSON ¶
type Request ¶
type Request struct { Method string `json:"method,omitempty"` URL string `json:"endpoint,omitempty"` Body string `json:"body,omitempty"` Depth int `json:"-"` Headers map[string]string `json:"headers,omitempty"` Tag string `json:"tag,omitempty"` Attribute string `json:"attribute,omitempty"` RootHostname string `json:"-"` Source string `json:"source,omitempty"` CustomFields map[string][]string `json:"-"` Raw string `json:"raw,omitempty"` }
Request is a navigation request for the crawler
func NewNavigationRequestURLFromResponse ¶
func NewNavigationRequestURLFromResponse(path, source, tag, attribute string, resp *Response) *Request
newNavigationRequestURL generates a navigation request from a relative URL
func (*Request) RequestURL ¶
RequestURL returns the request URL for the navigation
type Response ¶
type Response struct { Resp *http.Response `json:"-"` Depth int `json:"-"` Reader *goquery.Document `json:"-"` StatusCode int `json:"status_code,omitempty"` Headers Headers `json:"headers,omitempty"` Body string `json:"body,omitempty"` RootHostname string `json:"-"` Technologies []string `json:"technologies,omitempty"` Raw string `json:"raw,omitempty"` Forms []Form `json:"forms,omitempty"` XhrRequests []Request `json:"xhr_requests,omitempty"` StoredResponsePath string `json:"stored_response_path,omitempty"` }
Response is a response generated from crawler navigation
func (Response) AbsoluteURL ¶
Click to show internal directories.
Click to hide internal directories.