Class: BBServer::Request
- Inherits:
-
Object
- Object
- BBServer::Request
- Defined in:
- lib/bbserver/request.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(env) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(env) ⇒ Request
Returns a new instance of Request.
7 8 9 |
# File 'lib/bbserver/request.rb', line 7 def initialize(env) @env = env end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
5 6 7 |
# File 'lib/bbserver/request.rb', line 5 def env @env end |
Instance Method Details
#body ⇒ Object
11 12 13 |
# File 'lib/bbserver/request.rb', line 11 def body @body ||= env["rack.input"].read end |