http
http copied to clipboard
Event-driven, streaming HTTP client and server implementation for ReactPHP.
# ReactPHP v3 is going to happen! 🎉 We're committed to work on the next major version of ReactPHP. We've started working on this a while ago and believe it's...
When using persistent connections, this code makes me think that could cause problems... This happens inside the `handleRequest` in StreamingServer file. If we use persistent connections, we are adding one...
I recommend adding support for [`psr/http-message v2`](https://github.com/php-fig/http-message), which was released in April and requires PHP 7.2+. To ensure compatibility with `psr/http-message v2` across all currently supported versions in `http` (PHP...
This pull request enhances the React\Http\Message\Response class by introducing the ability to set dynamic HTTP status codes for JSON responses. This feature provides developers with the flexibility to adapt status...
This library should provide better support for HTTP file uploads and submitting forms. Right now, both are supported just fine, but require manually constructing the outgoing HTTP request body. This...
Inspired by [Guzzle middlewares](https://docs.guzzlephp.org/en/stable/handlers-and-middleware.html#middleware) I added a middleware system to the Browser component. I took the already existing \React\Http\Io\MiddlewareRunner as an example for this. Example usage: ``` class MyCustomMiddleware implements...
Hi there! Good job with taking care of https://github.com/reactphp/http/issues/468. Having the ability to use persistent connections is definitely a game changer for some use cases! I was wondering if it...
[ringcentral/psr7](https://packagist.org/packages/ringcentral/psr7) hasn't been updated in over 5 years. Need to keep up with the times. None of the existing PSR7 implementations work on PHP >=5.3 So I collect code from...
Once this PR is merged, we can start working on the new [v3.0.0 milestone](https://github.com/reactphp/http/milestone/37). The default branch will be `3.x` and the old `1.x` branch still stay in place at...
When a program using the library ends unexpectedly or the loop is stopped, the ServerInstance socket might not close the port. This results in the port remaining open until the...