Class: Rex::Proto::Http::Response::OK

Inherits:
Rex::Proto::Http::Response show all
Defined in:
lib/rex/proto/http/response.rb

Overview

HTTP 200/OK response class wrapper.

Instance Attribute Summary

Attributes inherited from Rex::Proto::Http::Response

#code, #count_100, #message, #peerinfo, #proto, #request

Attributes inherited from Packet

#auto_cl, #body, #body_bytes_left, #bufq, #chunk_max_size, #chunk_min_size, #compress, #error, #headers, #incomplete, #inside_chunk, #keepalive, #max_data, #state, #transfer_chunked

Instance Method Summary collapse

Methods inherited from Rex::Proto::Http::Response

#check_100, #cmd_string, #get_cookies, #get_cookies_parsed, #get_hidden_inputs, #get_html_document, #get_html_meta_elements, #get_html_scripts, #get_json_document, #get_xml_document, #redirect?, #redirection, #update_cmd_parts

Methods inherited from Packet

#[], #[]=, #check_100, #chunk, #cmd_string, #completed?, #from_s, #output_packet, #parse, #parse_body, #parse_header, #reset, #reset_except_queue, #to_s, #to_terminal_output, #update_cmd_parts

Constructor Details

#initialize(message = 'OK', proto = DefaultProtocol) ⇒ OK

Returns a new instance of OK.



29
30
31
# File 'lib/rex/proto/http/response.rb', line 29

def initialize(message = 'OK', proto = DefaultProtocol)
  super(200, message, proto)
end