HTTP-Throwable

 view release on metacpan or  search on metacpan

lib/HTTP/Throwable.pm  view on Meta::CPAN

    builder  => 'default_reason',
);

has 'message' => (
    is  => 'ro',
    isa => Str,
    predicate => 'has_message',
);

# TODO: type this attribute more strongly -- rjbs, 2011-02-21
has 'additional_headers' => ( is => 'ro', isa => ArrayRef );

sub build_headers {
    my ($self, $body) = @_;

    my @headers;

    @headers = @{ $self->body_headers($body) };

    if ( my $additional_headers = $self->additional_headers ) {
        push @headers => @$additional_headers;



( run in 0.744 second using v1.01-cache-2.11-cpan-5f2e87ce722 )