use URI::http;
use URI::https;
use URI::QueryParam;
+use HTTP::Headers;
use Moose;
is => 'rw',
isa => 'HTTP::Headers',
handles => [qw(content_encoding content_length content_type header referer user_agent)],
+ default => sub { HTTP::Headers->new() },
+ required => 1,
+ lazy => 1,
);
has _context => (
before uploads => sub {
my ($self) = @_;
- $self->_context->prepare_body;
+ #$self->_context->prepare_body;
};
has parameters => (
before parameters => sub {
my ($self, $params) = @_;
- $self->_context->prepare_body();
+ #$self->_context->prepare_body();
if ( $params && !ref $params ) {
$self->_context->log->warn(
"Attempt to retrieve '$params' with req->params(), " .