06 Oct 2018 03:56:19 UTC
- Distribution: HTTP-Tiny-Patch-Retry
- Module version: 0.001
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (477 / 0 / 4)
- KwaliteeBus factor: 1
- % Coverage
- License: perl_5
- Perl: v5.10.1
- Activity24 month
- Download (14.35KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionPERLANCAR perlancar
- 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.
Module Install Instructions
To install HTTP::Tiny::Patch::Retry, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install HTTP::Tiny::Patch::Retry
For more information on module installation, please visit the detailed CPAN module installation guide.