Class: HttpRequest

Inherits:
WEBrick::HTTPRequest
  • Object
show all
Defined in:
lib/action/module/http_pack_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(io) ⇒ HttpRequest

Returns a new instance of HttpRequest.



12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/action/module/http_pack_helper.rb', line 12

def initialize(io)
	@io=io
	@config={
:RequestTimeout =>30,
:InputBufferSize =>65536,
:HTTPVersion =>WEBrick::HTTPVersion.new("1.1"),
:Logger =>WEBrick::Log.new,
:Escape8bitURI =>false,
:ServerSoftware =>"Ruby HttpServer 1.0"
	}
	super(@config)
	parse(io)
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



10
11
12
# File 'lib/action/module/http_pack_helper.rb', line 10

def config
  @config
end

#ioObject (readonly)

Returns the value of attribute io.



10
11
12
# File 'lib/action/module/http_pack_helper.rb', line 10

def io
  @io
end

Instance Method Details

#contentObject



26
27
28
# File 'lib/action/module/http_pack_helper.rb', line 26

def content
	query
end