Blosxom::Plugin::Web::Response - Object representing CGI response
use Blosxom::Plugin::Web::Response; my $response = Blosxom::Plugin::Web::Response->new; my $header = $response->header; # Blosxom::Header object my $body = $response->body; # <!DOCTYPE html> ... $response->status( 304 );
Object representing CGI response.
Creates a Blosxom::Plugin::Web::Response object.
Returns a Blosxom::Header object instance.
A shortcut for $response->header->status.
$response->header->status
A shortcut for $response->header->content_type.
$response->header->content_type
$response->cookie( ID => 123456 ); # set my $id = $resposne->cookie( 'ID' ); # get
A decimal number indicating the size in bytes of the message content.
$response->content_length( 123 );
The Content-Encoding header field is used as a modifier to the media type. When present, its value indicates what additional encoding mechanism has been applied to the resource.
$response->content_encoding( 'gzip' );
Gets and sets the Location header.
Sets redirect URL with an optional status code, which defaults to 302.
$response->redirect( $url ); $response->redirect( $url, 301 );
Gets and sets HTTP response body.
$response->body( 'Hello World' );
Blosxom::Plugin, Plack::Response, Class::Singleton
Ryo Anazawa
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install Blosxom::Plugin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Blosxom::Plugin
CPAN shell
perl -MCPAN -e shell install Blosxom::Plugin
For more information on module installation, please visit the detailed CPAN module installation guide.