v1.5.0
版本发布时间: 2021-08-04 20:26:29
reactphp/http最新发布版本:v1.10.0(2024-03-28 01:25:03)
-
Feature: Update
Browser
signature to take optional$connector
as first argument and to match new Socket API without nullable loop arguments. (#418 and #419 by @clue)// unchanged $browser = new React\Http\Browser(); // deprecated $browser = new React\Http\Browser(null, $connector); $browser = new React\Http\Browser($loop, $connector); // new $browser = new React\Http\Browser($connector); $browser = new React\Http\Browser($connector, $loop);
-
Feature: Rename
Server
toHttpServer
to avoid class name collisions and to avoid any ambiguities with regards to the newSocketServer
API. (#417 and #419 by @clue)// deprecated $server = new React\Http\Server($handler); $server->listen(new React\Socket\Server(8080)); // new $http = new React\Http\HttpServer($handler); $http->listen(new React\Socket\SocketServer('127.0.0.1:8080'));