SPVM-HTTP-Tiny

 view release on metacpan or  search on metacpan

lib/SPVM/HTTP/Tiny.pm  view on Meta::CPAN

  # Accessing content
  my $content = $response->content;
  if (Fn->length($content) > 0) {
    print $content;
  }

=head1 Details

=head2 Wrapper of Mojo::UserAgent

This class is a wrapper of L<Mojo::UserAgent|SPVM::Mojo::UserAgent>. Unlike Perl's original C<HTTP::Tiny>, this implementation depends on the Mojo stack to support non-blocking I/O and L<Go|SPVM::Go> coroutines.

=head1 Fields

=head2 ua

C<has ua : ro L<Mojo::UserAgent|SPVM::Mojo::UserAgent>;>

The L<Mojo::UserAgent|SPVM::Mojo::UserAgent> object used for HTTP requests.

=head1 Class Methods



( run in 0.911 second using v1.01-cache-2.11-cpan-39bf76dae61 )