view release on metacpan or search on metacpan
lib/Apache2/REST.pm view on Meta::CPAN
use Apache2::Response ();
use Apache2::RequestUtil ();
use Apache2::Log;
use Apache2::REST::Handler ;
use Apache2::REST::Response ;
use Apache2::REST::Request ;
use Apache2::REST::Conf ;
use Data::Dumper ;
our $VERSION = '0.07';
=head1 NAME
Apache2::REST - Micro framework for REST API implementation under apache2/mod_perl2/apreq2
=head1 VERSION
Version 0.07
lib/Apache2/REST/Handler.pm view on Meta::CPAN
package Apache2::REST::Handler ;
use strict ;
use warnings ;
use Data::Dumper ;
use Apache2::Const qw(
:common :http
);
use Apache2::REST::Conf ;
use Apache2::REST::ErrorOutputRegistry ;
use base qw/Class::AutoAccess/ ;
=head1 NAME
lib/Apache2/REST/Writer/bin.pm view on Meta::CPAN
package Apache2::REST::Writer::bin ;
use strict ;
use JSON::XS ;
use Data::Dumper ;
=head1 NAME
Apache2::REST::Writer::bin - Apache2::REST::Response Writer for binary
=head1 DESCRIPTION
This writer returns the binary part of the response.
If the bin_mimetype of the response is set, it returns this mimetype.
Otherwise application/bin is returned
lib/Apache2/REST/Writer/json.pm view on Meta::CPAN
package Apache2::REST::Writer::json ;
use strict ;
use JSON::XS ;
use Data::Dumper ;
=head1 NAME
Apache2::REST::Writer::json - Apache2::REST::Response Writer for json
=cut
=head2 new
=cut
lib/Apache2/REST/Writer/perl.pm view on Meta::CPAN
package Apache2::REST::Writer::perl ;
use strict ;
use Data::Dumper ;
=head1 NAME
Apache2::REST::Writer::perl - Apache2::REST::Response Writer for perl
=cut
=head2 new
=cut
lib/Apache2/REST/Writer/xml.pm view on Meta::CPAN
package Apache2::REST::Writer::xml ;
use strict ;
use XML::Simple ;
use Data::Dumper ;
=head1 NAME
Apache2::REST::Writer::xml - Apache2::REST::Response Writer for xml
=cut
=head2 new
=cut
lib/Apache2/REST/Writer/xml_stream.pm view on Meta::CPAN
package Apache2::REST::Writer::xml_stream ;
use strict ;
use XML::Simple ;
use base qw/Apache2::REST::WriterStream/;
use Data::Dumper ;
=head1 NAME
Apache2::REST::Writer::xml_stream - Apache2::REST::Response Writer for streaming xml
=cut
=head1 METHODS
=head2 new
lib/Apache2/REST/Writer/yaml.pm view on Meta::CPAN
package Apache2::REST::Writer::yaml ;
use strict ;
use YAML;
use Data::Dumper ;
=head1 NAME
Apache2::REST::Writer::yaml - Apache2::REST::Response Writer for yaml
=cut
=head2 new
=cut
lib/Apache2/REST/Writer/yaml_multipart.pm view on Meta::CPAN
package Apache2::REST::Writer::yaml_multipart;
use strict ;
use YAML;
use Data::Dumper ;
use base qw/Apache2::REST::WriterMultipart/;
our $PART_MIME_TYPE = 'text/yaml';
=head1 NAME
Apache2::REST::Writer::yaml_multipart - Apache2::REST::Response Writer for multipart yaml
=cut
lib/Apache2/REST/Writer/yaml_stream.pm view on Meta::CPAN
package Apache2::REST::Writer::yaml_stream;
use strict ;
use YAML;
use Data::Dumper ;
use base qw/Apache2::REST::WriterStream/;
=head1 NAME
Apache2::REST::Writer::yaml_stream - Apache2::REST::Response Writer for streaming yaml
=cut
=head2 new