my $base = $c->request->base->clone;
my $basepath = $base->path;
$basepath =~ s/\/$//;
- $basepath .= '/' if $basepath;
+ $basepath .= '/';
my $match = $c->request->match;
$match =~ s/^\///;
$match .= '/' if $match;
}
}
+=item $c->prepare_body_chunk( $chunk )
+
+Prepare a chunk of data before sending it to HTTP::Body.
+
+=cut
+
+sub prepare_body_chunk {
+ my $c = shift;
+ $c->engine->prepare_body_chunk( $c, @_ );
+}
+
=item $c->prepare_body_parameters
Prepare body parameters.