Class: HttpServer::Response

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Response) initialize(status = 200)

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

- (Object) body

Returns the value of attribute body



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

def body
  @body
end

- (Object) header (readonly)

Returns the value of attribute header



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

def header
  @header
end

- (Object) status

Returns the value of attribute status



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

def status
  @status
end

- (Object) status_message

Returns the value of attribute status_message



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

def status_message
  @status_message
end