Class: NuHttp::Response
- Inherits:
-
Object
- Object
- NuHttp::Response
- Defined in:
- lib/nuhttp/context.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize ⇒ Response
Returns a new instance of Response.
92 93 94 95 96 |
# File 'lib/nuhttp/context.rb', line 92 def initialize @status = 200 @headers = {} @body = "" end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
90 91 92 |
# File 'lib/nuhttp/context.rb', line 90 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
90 91 92 |
# File 'lib/nuhttp/context.rb', line 90 def headers @headers end |
#status ⇒ Object
Returns the value of attribute status.
90 91 92 |
# File 'lib/nuhttp/context.rb', line 90 def status @status end |