Class: HttpServer::Request
- Inherits:
-
Object
- Object
- HttpServer::Request
- Defined in:
- lib/xmlrpc/httpserver.rb
Overview
Classes -------------------------------------------------
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#proto ⇒ Object
readonly
Returns the value of attribute proto.
Instance Method Summary collapse
- #content_length ⇒ Object
-
#initialize(data, method = nil, path = nil, proto = nil) ⇒ Request
constructor
A new instance of Request.
Constructor Details
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data
51 52 53 |
# File 'lib/xmlrpc/httpserver.rb', line 51 def data @data end |
#header ⇒ Object (readonly)
Returns the value of attribute header
51 52 53 |
# File 'lib/xmlrpc/httpserver.rb', line 51 def header @header end |
#method ⇒ Object (readonly)
Returns the value of attribute method
51 52 53 |
# File 'lib/xmlrpc/httpserver.rb', line 51 def method @method end |
#path ⇒ Object (readonly)
Returns the value of attribute path
51 52 53 |
# File 'lib/xmlrpc/httpserver.rb', line 51 def path @path end |
#proto ⇒ Object (readonly)
Returns the value of attribute proto
51 52 53 |
# File 'lib/xmlrpc/httpserver.rb', line 51 def proto @proto end |
Instance Method Details
#content_length ⇒ Object
58 59 60 61 62 |
# File 'lib/xmlrpc/httpserver.rb', line 58 def content_length len = @header['Content-Length'] return nil if len.nil? return len.to_i end |