David Golden > HTTP-Tiny-UA-0.002 > HTTP::Tiny::UA

Download:
HTTP-Tiny-UA-0.002.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.002   Source  

NAME ^

HTTP::Tiny::UA - Higher-level UA features for HTTP::Tiny

VERSION ^

version 0.002

SYNOPSIS ^

    use HTTP::Tiny::UA;
    
    my $ua = HTTP::Tiny::UA->new(
        ...
    );

DESCRIPTION ^

This module extends HTTP::Tiny with higher-level convenience features.

METHODS ^

new

    $http = HTTP::Tiny::UA->new( %attributes );

This is inherited from HTTP::Tiny. The only difference so far is that agent will be HTTP-Tiny-UA/$VERSION.

See SSL SUPPORT in HTTP::Tiny for more on the verify_SSL and SSL_options attributes.

get|head|put|post|post_form|mirror|delete

These methods are inherited from HTTP::Tiny and work the same, except they invoke the HTTP::Tiny::UA request method and return a HTTP::Tiny::UA::Response object.

request

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

Just like HTTP::Tiny::request, but returns a HTTP::Tiny::UA::Reponse object. All other get, post, etc. methods eventually invoke this one so all such methods return response objects now.

EXCEPTIONS ^

Exceptions from max_size, timeout or other error conditions will result in a pseudo-HTTP status code of 599 and a reason of "Internal Exception". The content field in the response will contain the text of the exception.

CONTRIBUTING ^

Unlike HTTP::Tiny, this module is open to additional features. Please discuss new ideas on the bug tracker for feedback before implementing.

While this module is not strictly "Tiny", here are some general guidelines:

SEE ALSO ^

SUPPORT ^

Bugs / Feature Requests

Please report any bugs or feature requests through the issue tracker at https://github.com/dagolden/HTTP-Tiny-UA/issues. You will be notified automatically of any progress on your issue.

Source Code

This is open source software. The code repository is available for public review and contribution under the terms of the license.

https://github.com/dagolden/HTTP-Tiny-UA

  git clone https://github.com/dagolden/HTTP-Tiny-UA.git

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
syntax highlighting: