Skip to content

Instantly share code, notes, and snippets.

@vti
Created November 25, 2014 08:03
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 vti/c11a9c1e63332de1ab59 to your computer and use it in GitHub Desktop.
Save vti/c11a9c1e63332de1ab59 to your computer and use it in GitHub Desktop.
use v6;
my $request = 'GET / HTTP/1.1';
if $request ~~ m/HTTP\/(\d+)\.(\d+)$/ {
warn $0;
}
my @headers = ('Foo: bar');
for @headers <-> $header {
if $header ~~ s/^ (Foo)\: \h?// {
warn $0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment