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

Function bodyFrameTagParser

pkg/engine/parser/parser.go:210–218  ·  view source on GitHub ↗

bodyFrameTagParser parses frame tag from response

(resp *navigation.Response)

Source from the content-addressed store, hash-verified

208
209// bodyFrameTagParser parses frame tag from response
210func bodyFrameTagParser(resp *navigation.Response) (navigationRequests []*navigation.Request) {
211 resp.Reader.Find("frame[src]").Each(func(i int, item *goquery.Selection) {
212 src, ok := item.Attr("src")
213 if ok && src != "" {
214 navigationRequests = append(navigationRequests, navigation.NewNavigationRequestURLFromResponse(src, resp.Resp.Request.URL.String(), "frame", "src", resp))
215 }
216 })
217 return
218}
219
220// bodyIframeTagParser parses iframe tag from response
221func bodyIframeTagParser(resp *navigation.Response) (navigationRequests []*navigation.Request) {

Callers

nothing calls this directly

Calls 2

StringMethod · 0.45

Tested by

no test coverage detected