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, #proto, #request

Attributes inherited from Packet

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

Instance Method Summary collapse

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

#check_100, #cmd_string, #get_cookies, #redirect?, #redirection, #update_cmd_parts

Methods inherited from Packet

#[], #[]=, #chunk, #cmd_string, #completed?, #from_s, #parse, #reset, #reset_except_queue, #to_s

Constructor Details

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

Returns a new instance of OK


26
27
28
# File 'lib/rex/proto/http/response.rb', line 26

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