v0.5.4
版本发布时间: 2017-08-25 20:25:42
reactphp/http-client最新发布版本:v0.5.11(2021-04-08 00:50:19)
-
Feature: Update Socket dependency to support hosts file on all platforms (#108 by @clue)
This means that HTTP requests to hosts such as
localhost
will now work as expected across all platforms with no changes required:$client = new Client($loop); $request = $client->request('GET', 'http://localhost/'); $request->on('response', function (Response $response) { // … }); $request->end();