class Mongrel2::XMLRequest
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
new( sender_id, conn_id, path, headers, body, raw=nil )
click to toggle source
Parse the body as JSON.
Calls superclass method
Mongrel2::Request::new
# 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