Artax ⋅ Streaming
Artax allows streaming the response body by using the Message
API of amphp/byte-stream
.
$response = yield $client->request("https://httpbin.org/get");
$body = $response->getBody();
while (null !== $chunk = yield $body->read()) {
print $chunk;
}