Class: HttpRequest
- Inherits:
-
WEBrick::HTTPRequest
- Object
- WEBrick::HTTPRequest
- HttpRequest
- Defined in:
- lib/action/module/http_pack_helper.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#io ⇒ Object
readonly
Returns the value of attribute io.
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(io) ⇒ HttpRequest
constructor
A new instance of HttpRequest.
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
#config ⇒ Object (readonly)
Returns the value of attribute config.
10 11 12 |
# File 'lib/action/module/http_pack_helper.rb', line 10 def config @config end |
#io ⇒ Object (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
#content ⇒ Object
26 27 28 |
# File 'lib/action/module/http_pack_helper.rb', line 26 def content query end |