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.
I was expecting this code to work:
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.