The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Blosxom::Plugin::Response - Object represents CGI response

SYNOPSIS

  use Blosxom::Plugin::Response;

  my $response = Blosxom::Plugin::Response->instance;

  my $header = $response->header; # Blosxom::Header object
  my $body = $response->body; # <!DOCTYPE html> ...

  $response->status( 304 );

DESCRIPTION

Object represents CGI response.

METHODS

Blosxom::Plugin::Response->begin

Exports instance() into context class as response(). res() is an alias.

$response = Blosxom::Plugin::Response->instance

Returns a current Blosxom::Plugin::Response object instance or create a new one.

$response = Blosxom::Plugin::Response->has_instance

Returns a reference to any existing instance or undef if none is defined.

$response->header

Returns a Blosxom::Header object instance.

$response->status
$response->content_type
$response->cookies
$response->content_length
$response->content_encoding
$response->location
$response->redirect

SEE ALSO

Blosxom::Plugin, Plack::Response, Class::Singleton

AUTHOR

Ryo Anazawa

LICENSE AND COPYRIGHT

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.