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

NAME

HTTP::Tiny::UA::Response - Wrap HTTP::Tiny response as objects with accessors

VERSION

version 0.006

SYNOPSIS

    my $res = HTTP::Tiny::UA->new->get( $url );

    if ( $res->success ) {
        say "Got " . $res->header("Content-Length") . " bytes";
    }

DESCRIPTION

This module wraps an HTTP::Tiny response as an object to provide some accessors and convenience methods.

ATTRIBUTES

success

url

protocol

status

reason

content

headers

METHODS

    $response->header( "Content-Length" );

Return a header out of the headers hash. The field is case-insensitive. If the header was repeated, the value returned will be an array reference. Otherwise it will be a scalar value.

AUTHOR

David Golden <dagolden@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2013 by David Golden.

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004