NAME
Net::Curl::Parallel::Types - type constraints for Net::Curl::Parallel
EXPORTED TYPES
Declared types may be exported individually or as a set with -all
.
use Net::Curl::Parallel::Types -all;
use Net::Curl::Parallel::Types qw(Agent Method);
Positive
A positive integer.
Natural
A positive integer or zero.
Agent
An HTTP client agent string in the form Name/v1.23
.
Method
A supported HTTP method. Coercible from a matching lowercase name.
Uri
A valid URI string. Automatically coerced from URI and URI::Fast objects.
Headers
An array of strings, where each string is a header key/value pair separated by a colon. Coercible from undef (to empty header set), array of string tuples containing key/value pairs, a hash of key/value pairs, or an instance of HTTP::Headers.
Content
An optional string (Maybe[Str]
). Coercible from a hash ref of query parameters or an array ref of key/value tuples to a url-encoded string. There are no coercions or automatic url-encoding of binary data or other formats.
{foo => 'bar bat'} -> foo=bar%20bat
{foo => ['bar', 'bat']} -> foo=bar&foo=bat
[['foo', 'bar bat']] -> foo=bar%20bat
[['foo', 'bar'], ['foo', 'bat']] -> foo=bar&foo=bat
Request
The supported request parameters accepted by "add" in Net::Curl::Parallel, matching the arguments to the constructor of HTTP::Request. Coercible from an instance of HTTP::Request.