Method: Apache::Request#initialize

Defined in:
lib/apache/fakerequest.rb

#initialize(uri = nil) ⇒ Request

Returns a new instance of Request.



330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
# File 'lib/apache/fakerequest.rb', line 330

def initialize( uri=nil )
  @uri = uri
  @server = nil
  @allowed = Apache::M_GET | Apache::M_POST
  @paramtable = {}
  @sync_header = false
  @content_type = 'text/html'
  @hostname = 'localhost'
  @path_info = ''
  @headers_in = Apache::Table.new
  @headers_out = Apache::Table.new
  @options = {}
  @uploads = {}
  @method_number = Apache::M_GET
  @connection = Apache::Connection.new
end