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.



63
64
65
66
67
# File 'lib/xmlrpc/httpserver.rb', line 63

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



61
62
63
# File 'lib/xmlrpc/httpserver.rb', line 61

def body
  @body
end

#headerObject (readonly)

Returns the value of attribute header.



60
61
62
# File 'lib/xmlrpc/httpserver.rb', line 60

def header
  @header
end

#statusObject

Returns the value of attribute status.



61
62
63
# File 'lib/xmlrpc/httpserver.rb', line 61

def status
  @status
end

#status_messageObject

Returns the value of attribute status_message.



61
62
63
# File 'lib/xmlrpc/httpserver.rb', line 61

def status_message
  @status_message
end