http
http copied to clipboard
Event-driven, streaming HTTP client and server implementation for ReactPHP.
With PHP 8.2 coming out later this year, we should be reading for it's release to ensure all out code works on it.
closes issue: #449 new methods for the class Browser (withHeader and withoutHeader) With this methods you are able to set/remove default headers
By moving this code into a dedicated class we prepare for future changes required by RFC's, and don't grow the `ServerRequest` class beyond what it purpose it.
Should close #409 303 See Other should change the method to GET all other redirects should leave it unchanged (Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages) I think there are some specialties for 300 and...
Hi there, I tried to send large data to stream response, but when I send request from browser, the browser didn't open file dialog download until method ```$stream->end()``` was called....
This project has some potential for additional performance improvements by avoiding a number of unneeded syscalls. These low-level system calls are usually issued as a result of some higher-level PHP...
Builds on top of https://github.com/reactphp/promise/pull/75, https://github.com/reactphp/promise/pull/213, https://github.com/reactphp/promise/pull/138, https://github.com/reactphp/socket/pull/214 and https://github.com/reactphp/promise-stream/pull/20 Also builds on top of dev updates in https://github.com/clue/reactphp-block/pull/61, https://github.com/clue/reactphp-http-proxy/pull/44, https://github.com/clue/reactphp-socks/pull/106 and https://github.com/clue/reactphp-ssh-proxy/pull/35
Here's what this could potentially look like: ```php $browser = new React\Http\Browser(); $browser = $browser->withProtocolVersion('1.1'); // already supported $browser = $browser->withHeader('User-Agent', 'ACME'); // could be useful? $browser->get($url)->then(…); ``` This isn't...
Based on the Idea of #376 by @clue Emits an `upgrade` event when: - `Connection` header is present in the response headers and values has `upgrade` - Response status code...