In Files

  • xmlrpc/httpserver.rb

Parent

HttpServer::Request

Attributes

data[R]
header[R]
method[R]
path[R]
proto[R]

Public Class Methods

new(data, method=nil, path=nil, proto=nil) click to toggle source
 
               # File xmlrpc/httpserver.rb, line 46
def initialize(data, method=nil, path=nil, proto=nil)
  @header, @data = Table.new, data
  @method, @path, @proto = method, path, proto
end
            

Public Instance Methods

content_length() click to toggle source
 
               # File xmlrpc/httpserver.rb, line 51
def content_length
  len = @header['Content-Length']
  return nil if len.nil?
  return len.to_i
end