Skip to content

Mojo user agent wrapper for Test2::Tools::HTTP

Notifications You must be signed in to change notification settings

uperl/Test2-Tools-HTTP-UA-Mojo

Repository files navigation

Test2::Tools::HTTP::UA::Mojo static linux macos windows

Mojo user agent wrapper for Test2::Tools::HTTP

SYNOPSIS

use Test2::Tools::HTTP;
use Mojo::UserAgent;

http_ua( Mojo::UserAgent->new )

http_request(
  GET('http://example.test'),
  http_response {
    http_code 200;
    http_response match qr/something/;
    ...
  }
);;

done_testing;

DESCRIPTION

This module is a user agent wrapper for Test2::Tools::HTTP that allows you to use Mojo::UserAgent as a user agent for testing.

SEE ALSO

AUTHOR

Graham Ollis plicease@cpan.org

COPYRIGHT AND LICENSE

This software is copyright (c) 2018-2022 by Graham Ollis.

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

About

Mojo user agent wrapper for Test2::Tools::HTTP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages