Class: NuHttp::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/nuhttp/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponse

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

#bodyObject

Returns the value of attribute body.



90
91
92
# File 'lib/nuhttp/context.rb', line 90

def body
  @body
end

#headersObject

Returns the value of attribute headers.



90
91
92
# File 'lib/nuhttp/context.rb', line 90

def headers
  @headers
end

#statusObject

Returns the value of attribute status.



90
91
92
# File 'lib/nuhttp/context.rb', line 90

def status
  @status
end