- SEE ALSO
- COPYRIGHT AND LICENSE
HTTP::Tiny::Patch::Retry - Retry failed HTTP::Tiny requests
This document describes version 0.001 of HTTP::Tiny::Patch::Retry (from Perl distribution HTTP-Tiny-Patch-Retry), released on 2018-10-06.
use HTTP::Tiny::Patch::Retry # -retries => 4, # optional, default is 3 # -delay => 5, # optional, default is 2 ; my $res = HTTP::Tiny->new->get("http://www.example.com/");
This module patches HTTP::Tiny to retry fail responses (a.k.a. responses with 5xx statuses; 4xx are considered the client's fault so we don't retry those).
Int, default 3. Maximum number of consecutive retries for a request. 0 will disable retrying.
Int, default 2. Number of seconds to wait between retries.
Please visit the project's homepage at https://metacpan.org/release/HTTP-Tiny-Patch-Retry.
Source repository is at https://github.com/perlancar/perl-HTTP-Tiny-Patch-Retry.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=HTTP-Tiny-Patch-Retry
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
HTTP::Tiny::Patch::Cache which can be combined with this patch to give both retry and caching ability.
This software is copyright (c) 2018 by firstname.lastname@example.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.