NAME
HTTP::Body::XFormsMultipart - HTTP Body XForms multipart/related submission Parser
SYNOPSIS
use HTTP::Body::XFormsMultipart;
DESCRIPTION
HTTP Body XForms submission Parser. Inherits HTTP::Body::MultiPart.
This body type is used to parse XForms submission. In this case, the XML part that contains the model is indicated by the start attribute in the content-type. The XML content is stored unparsed on the parameter XForms:Model.
Every other part is an upload named after its Content-ID: its data is written to a temporary file like that of any multipart upload, and a NUL in the Content-ID is stripped.
METHODS
- init
-
This function is overridden to detect the start part of the multipart/related post.
- start
-
Defines the start part of the multipart/related body.
- handler
-
This function is overridden to name the parts by their Content-ID: the start part becomes the XForms:Model param, and its data the body; every other part becomes an upload, as described above.
SUPPORT
See HTTP::Body
AUTHOR
Daniel Ruoso daniel@ruoso.com
LICENSE
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.