Class: Spider::HTTP::WEBrickRequest
- Defined in:
- lib/spiderfw/http/adapters/webrick.rb
Constant Summary
Constants inherited from Request
Instance Attribute Summary collapse
-
#webrick_request ⇒ Object
Returns the value of attribute webrick_request.
Attributes inherited from Request
#action, #controller_path, #cookies, #env, #format, #locale, #misc, #params, #protocol, #request_time, #server, #session, #user_id
Instance Method Summary collapse
Methods inherited from Request
#body=, current, current=, #initialize, #path, #read_body, reset_current
Constructor Details
This class inherits a constructor from Spider::Request
Instance Attribute Details
#webrick_request ⇒ Object
Returns the value of attribute webrick_request.
52 53 54 |
# File 'lib/spiderfw/http/adapters/webrick.rb', line 52 def webrick_request @webrick_request end |
Instance Method Details
#body(&proc) ⇒ Object
55 56 57 |
# File 'lib/spiderfw/http/adapters/webrick.rb', line 55 def body(&proc) @webrick_request.body{ |buf| yield buf } end |