NAME

Mojo::Pua::Class - HTTP Client Class + Evo::Promises

VERSION

version 0.005

SYNOPSIS

use Evo 'Mojo::Pua::Class';
my $ua = Mojo::Pua::Class->new();

$ua->get("http://alexbyk.com/")

  ->then(sub($res) { say $res->dom->at('title') })

  ->catch(sub($err) { say "ERR: $err"; say $err->res->body if $err->res; })

  ->finally(sub { Mojo::IOLoop->stop; });

Mojo::IOLoop->start;

DESCRIPTION

Mojo::Pua::Class inherits all methods from Mojo::UserAgent but returns Evo::Promise::Class object for each request

AUTHOR

alexbyk <alexbyk.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by alexbyk.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.