Skip to content

HTTP::UserAgent.new(timeout => 10) does not set the timeout but probably should #206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AlexDaniel opened this issue Jun 25, 2018 · 1 comment

Comments

@AlexDaniel
Copy link
Contributor

I was expecting this code to work:

my $ua = HTTP::UserAgent.new(timeout => 10);
say $ua # HTTP::UserAgent.new(timeout => 180, …)

But it doesn't, and it seems like I have to set the timeout with $ua.timeout = 10. Would've been great if it was possible to set the timeout right from the constructor.

@ugexe
Copy link
Member

ugexe commented Jun 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants