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
The following code requires HEAD of HTTP::Client, which zef does not see yet, PR for that is pending.
use v6;
use HTTP::Client;
sub try-to-fetch-url($_) {
my $response = HTTP::Client.new.head(.Str, :follow);
CATCH { default { $response = Nil } }
200 <= $response.?status < 400
}
say so try-to-fetch-url('https://github.com/gfldex/');
The text was updated successfully, but these errors were encountered:
This one just bit me.
The following code requires HEAD of HTTP::Client, which zef does not see yet, PR for that is pending.
The text was updated successfully, but these errors were encountered: