The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Zapp::Task::Request - Make an HTTP Request

VERSION

version 0.005

DESCRIPTION

This task makes an HTTP request for a web site.

Output

is_success          - True if the response was successful
code                - The response code (like 200 or 404)
message             - The HTTP message (like "OK" or "Not Found")
json                - If the response was JSON, the decoded JSON structure
file                - If the response was a file, the path to the file
body                - If the response was anything else, the response body
headers             - The headers from the response as a hash
    content_type    - The Content-Type header
    location        - The Location header

SEE ALSO

AUTHOR

Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2021 by Doug Bell.

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