Skip to content

Instantly share code, notes, and snippets.

@AlexDaniel
Created October 9, 2019 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexDaniel/53d478aed8fc02d2d0a14dcb83e8585b to your computer and use it in GitHub Desktop.
Save AlexDaniel/53d478aed8fc02d2d0a14dcb83e8585b to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl6
use Cro::HTTP::Client;
my $url = ‘https://modules.perl6.org/search.json’;
my $resp = await Cro::HTTP::Client.get: $url,
headers => [
User-Agent => ‘perl6 ecosystem unbitrot’,
],
;
my $x = await $resp.body;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment