MCPcopy
hub / github.com/projectdiscovery/katana / NewNavigationRequestURLFromResponse

Function NewNavigationRequestURLFromResponse

pkg/navigation/request.go:44–56  ·  view source on GitHub ↗

newNavigationRequestURL generates a navigation request from a relative URL

(path, source, tag, attribute string, resp *Response)

Source from the content-addressed store, hash-verified

42
43// newNavigationRequestURL generates a navigation request from a relative URL
44func NewNavigationRequestURLFromResponse(path, source, tag, attribute string, resp *Response) *Request {
45 requestURL := resp.AbsoluteURL(path)
46 request := &Request{
47 Method: http.MethodGet,
48 URL: requestURL,
49 RootHostname: resp.RootHostname,
50 Depth: resp.Depth,
51 Source: source,
52 Attribute: attribute,
53 Tag: tag,
54 }
55 return request
56}

Callers 15

headerLinkParserFunction · 0.92
headerLocationParserFunction · 0.92
headerRefreshParserFunction · 0.92
bodyATagParserFunction · 0.92
bodyLinkHrefTagParserFunction · 0.92
bodyEmbedTagParserFunction · 0.92
bodyFrameTagParserFunction · 0.92
bodyIframeTagParserFunction · 0.92
bodyInputSrcTagParserFunction · 0.92
bodyScriptSrcTagParserFunction · 0.92

Calls 1

AbsoluteURLMethod · 0.80

Tested by

no test coverage detected