sub query_params { shift->query_parameters(@_) }
sub path_info { shift->path(@_) }
-=for stopwords param params snippets
+=for stopwords param params
=head1 NAME
Sets up parameters from body.
-=head2 $self->prepare_cookies($c)
+=head2 $self->prepare_cookies()
Parse cookies from header. Sets up a L<CGI::Simple::Cookie> object.
+=head2 $self->prepare_connection()
+
+Sets up various fields in the request like the local and remote addresses,
+request method, vhost requested etc.
+
+=head2 $self->prepare_parameters()
+
+Ensures that the body has been parsed, then builds the parameters, which are
+combined from those in the request and those in the body.
+
+This method is the builder for the 'parameters' attribute.
+
=head2 meta
Provided by Moose
sub code { shift->status(@_) }
-=head2 $self->write($buffer)
-
-Writes the buffer to the client.
-
-=cut
-
sub write {
my ( $self, $buffer ) = @_;
return $len;
}
-=head2 $self->finalize_headers($c)
-
-Abstract method, allows engines to write headers to response
-
-=cut
-
sub finalize_headers {
my ($self) = @_;
Prints @data to the output stream, separated by $,. This lets you pass
the response object to functions that want to write to an L<IO::Handle>.
+=head2 $self->finalize_headers($c)
+
+Writes headers to response if not already written
+
=head2 DEMOLISH
Ensures that the response is flushed and closed at the end of the
foreach my $module (@modules) {
local @private = (@private, 'run') if $module =~ /^Catalyst::Script::/;
local @private = (@private, 'plugin') if $module =~ /^Catalyst$/;
+ local @private = (@private, 'snippets') if $module =~ /^Catalyst::Request$/;
+ local @private = (@private, 'prepare_connection') if $module =~ /^Catalyst::Engine$/;
+
pod_coverage_ok($module, {
also_private => \@private,
coverage_class => 'Pod::Coverage::TrustPod',