Class: HttpServer::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/xmlrpc/httpserver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status = 200) ⇒ Response

Returns a new instance of Response.



70
71
72
73
74
# File 'lib/xmlrpc/httpserver.rb', line 70

def initialize(status=200)
  @status = status
  @status_message = nil
  @header = Table.new
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body



68
69
70
# File 'lib/xmlrpc/httpserver.rb', line 68

def body
  @body
end

#headerObject (readonly)

Returns the value of attribute header



67
68
69
# File 'lib/xmlrpc/httpserver.rb', line 67

def header
  @header
end

#statusObject

Returns the value of attribute status



68
69
70
# File 'lib/xmlrpc/httpserver.rb', line 68

def status
  @status
end

#status_messageObject

Returns the value of attribute status_message



68
69
70
# File 'lib/xmlrpc/httpserver.rb', line 68

def status_message
  @status_message
end