You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Geo::Coder::OpenCage allows to set a user agent (ua parameter) which defaults to HTTP::Tiny. Documentation says "Useful if for example you want to specify that something like LWP::UserAgent::Throttled for rate limiting."
Later in code logic
my $response = $self->{ua}->get($URL);`
...
$response->{reason}
...
$response->{content}
That fits the HTTP::Tiny interface.
But the more common LWP user agents as well, e.g. LWP::Simple or LWP::UserAgent::Throttled return a HTTP::Response instance with status_line and decoded_content data accessors.
The text was updated successfully, but these errors were encountered:
Geo::Coder::OpenCage
allows to set a user agent (ua
parameter) which defaults toHTTP::Tiny
. Documentation says "Useful if for example you want to specify that something like LWP::UserAgent::Throttled for rate limiting."Later in code logic
That fits the
HTTP::Tiny
interface.But the more common LWP user agents as well, e.g.
LWP::Simple
orLWP::UserAgent::Throttled
return aHTTP::Response
instance withstatus_line
anddecoded_content
data accessors.The text was updated successfully, but these errors were encountered: