So, I have this:
my $conn = await IO::Socket::Async.connect('127.0.0.1', 12340);
$conn.print: "GET /rest HTTP/1.1\r\n\r\n";
How to receive just the first line from the server ?
I could use whenever and put some logic in it, but there's a simpler way, right ?