XMLRequest

class
Superclass
Mongrel2::Request
Extended With
Loggability

The Mongrel2 XML Request class. Instances of this class represent a request for an XML route from a Mongrel2 server.

Attributes

reader[R]

The parsed request data (a LibXML::Reader object)

Public Class Methods

anchor
new( sender_id, conn_id, path, headers, body, raw=nil )

Parse the body as JSON.

# File lib/mongrel2/xmlrequest.rb, line 22
def initialize( sender_id, conn_id, path, headers, body, raw=nil )
        super
        self.log.debug "Parsing XML request body"
        @reader = LibXML::XML::Reader.string( body )
end