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

NAME

Net::HTTP2::Client::Connection::IOAsync

SYNOPSIS

    my $loop = IO::Async::Loop->new();

    my $h2 = Net::HTTP2::Client::Connection::IOAsync->new( $loop, 'perl.org' );

    $h2->request("GET", "/")->then(
        sub ($resp) {
            print $resp->content();
        },
    )->finally( sub { $loop->stop() } );

    $loop->run();

DESCRIPTION

This class extends Net::HTTP2::Client::Connection to work with IO::Async.

It requires IO::Async::SSL, which as of this writing is a separate distribution.