Method: Arachni::Parser#document

Defined in:
lib/arachni/parser.rb

#documentArachni::Parser::Document?

Returns a parsed HTML document from the body of the HTTP response or nil if the response data wasn't text-based or the response couldn't be parsed.

Returns:

  • (Arachni::Parser::Document, nil)

    Returns a parsed HTML document from the body of the HTTP response or nil if the response data wasn't text-based or the response couldn't be parsed.



260
261
262
263
264
265
# File 'lib/arachni/parser.rb', line 260

def document
    return @document if @document
    return if !text?

    @document = self.class.parse( body, filter: true )
end