HTTP::Body 1.00 release
[catagits/HTTP-Body.git] / lib / HTTP / Body / XForms.pm
CommitLineData
5940e4c7 1package HTTP::Body::XForms;
2
3use strict;
4use base 'HTTP::Body';
5use bytes;
6
7use File::Temp 0.14;
8
9=head1 NAME
10
11HTTP::Body::XForms - HTTP Body XForms Parser
12
13=head1 SYNOPSIS
14
15 use HTTP::Body::XForms;
16
17=head1 DESCRIPTION
18
19HTTP Body XForms Parser. This module parses single part XForms
20submissions, which are identifiable by the content-type
21application/xml. The XML is stored unparsed on the parameter
22XForms:Model.
23
24=head1 METHODS
25
26=over 4
27
28=item spin
29
30This method is overwrited to set the param XForms:Model with
31the buffer content.
32
33=cut
34
35sub spin {
36 my $self = shift;
37
38 $self->param( 'XForms:Model', $self->{buffer} );
39
40 $self->{buffer} = '';
41 $self->{state} = 'done';
42
43 return $self->SUPER::init();
44}
45
46=back
47
48=head1 AUTHOR
49
50Daniel Ruoso, C<daniel@ruoso.com>
51
52=head1 LICENSE
53
54This library is free software . You can redistribute it and/or modify
55it under the same terms as perl itself.
56
57=cut
58
591;