Skip to content

Remove ringcentral/psr7 because it appears to be abandoned and upstream projects would like to support psr/http-message ^2.0#65

Open
kwhat wants to merge 1 commit into
clue:1.xfrom
kwhat:remove_ringcentral_dep
Open

Remove ringcentral/psr7 because it appears to be abandoned and upstream projects would like to support psr/http-message ^2.0#65
kwhat wants to merge 1 commit into
clue:1.xfrom
kwhat:remove_ringcentral_dep

Conversation

@kwhat

@kwhat kwhat commented Jun 11, 2025

Copy link
Copy Markdown

It is unclear if we need to wait for all of the headers before parsing or if by removing the PSR7 requirement we can simply just parse the first line of the http response. I left the strpos() in there in case there was a reason the code was waiting.

This resolves issue #64

@CodeWithKyrian

Copy link
Copy Markdown

Hey @clue, @WyriHaximus, could you take a look at this? I think this might be a solid direction/solution

@WyriHaximus

Copy link
Copy Markdown

@CodeWithKyrian @kwhat This looks great to me as it doesn't introduce another dependency and it helps move reactphp/http#542 forward. But I don't have any power or say over this repo, so this is all in @clue's hands.

@CodeWithKyrian

Copy link
Copy Markdown

I understand. We wait then

@helios-ag

Copy link
Copy Markdown

@clue Bump!

@mikespub

mikespub commented Oct 11, 2025

Copy link
Copy Markdown

@clue bump?

WyriHaximus added a commit to WyriHaximus-labs/http that referenced this pull request Apr 24, 2026
This changeset introduces our PSR-7 v2 implementation alongside our PSR-7 v1 implementation and goes with v1 or v2 depending on which `psr/http-message` version is installed. This is admittedly not my best code, nor am I proud of it, but it gets the job done.

This relies on clue/reactphp-http-proxy#65 being merged first.

Implements reactphp#513 for `react/http` v1.
WyriHaximus added a commit to WyriHaximus-labs/http that referenced this pull request Apr 24, 2026
This changeset introduces our PSR-7 v2 implementation alongside our PSR-7 v1 implementation and goes with v1 or v2 depending on which `psr/http-message` version is installed. This is admittedly not my best code, nor am I proud of it, but it gets the job done.

This relies on clue/reactphp-http-proxy#65 being merged first.

Implements reactphp#513 for `react/http` v1.
WyriHaximus added a commit to WyriHaximus-labs/http that referenced this pull request Apr 24, 2026
This changeset introduces our PSR-7 v2 implementation alongside our PSR-7 v1 implementation and goes with v1 or v2 depending on which `psr/http-message` version is installed. This is admittedly not my best code, nor am I proud of it, but it gets the job done.

This relies on clue/reactphp-http-proxy#65 being merged first.

Implements reactphp#513 for `react/http` v1.
WyriHaximus added a commit to WyriHaximus-labs/http that referenced this pull request Apr 24, 2026
This changeset introduces our PSR-7 v2 implementation alongside our PSR-7 v1 implementation and goes with v1 or v2 depending on which `psr/http-message` version is installed. This is admittedly not my best code, nor am I proud of it, but it gets the job done.

This relies on clue/reactphp-http-proxy#65 being merged first.

Implements reactphp#513 for `react/http` v1.
WyriHaximus added a commit to WyriHaximus-labs/http that referenced this pull request Apr 24, 2026
This changeset introduces our PSR-7 v2 implementation alongside our PSR-7 v1 implementation and goes with v1 or v2 depending on which `psr/http-message` version is installed. This is admittedly not my best code, nor am I proud of it, but it gets the job done.

This relies on clue/reactphp-http-proxy#65 being merged first.

Implements reactphp#513 for `react/http` v1.
WyriHaximus added a commit to WyriHaximus-labs/http that referenced this pull request Apr 24, 2026
This changeset introduces our PSR-7 v2 implementation alongside our PSR-7 v1 implementation and goes with v1 or v2 depending on which `psr/http-message` version is installed. This is admittedly not my best code, nor am I proud of it, but it gets the job done.

This relies on clue/reactphp-http-proxy#65 being merged first.

Implements reactphp#513 for `react/http` v1.
WyriHaximus added a commit to WyriHaximus-labs/http that referenced this pull request Apr 24, 2026
This changeset introduces our PSR-7 v2 implementation alongside our PSR-7 v1 implementation and goes with v1 or v2 depending on which `psr/http-message` version is installed. This is admittedly not my best code, nor am I proud of it, but it gets the job done.

This relies on clue/reactphp-http-proxy#65 being merged first.

Implements reactphp#513 for `react/http` v1.
WyriHaximus added a commit to WyriHaximus-labs/http that referenced this pull request Apr 24, 2026
This changeset introduces our PSR-7 v2 implementation alongside our PSR-7 v1 implementation and goes with v1 or v2 depending on which `psr/http-message` version is installed. This is admittedly not my best code, nor am I proud of it, but it gets the job done.

This relies on clue/reactphp-http-proxy#65 being merged first.

Implements reactphp#513 for `react/http` v1.
WyriHaximus added a commit to WyriHaximus-labs/http that referenced this pull request Apr 24, 2026
This changeset introduces our PSR-7 v2 implementation alongside our PSR-7 v1 implementation and goes with v1 or v2 depending on which `psr/http-message` version is installed. This is admittedly not my best code, nor am I proud of it, but it gets the job done.

This relies on clue/reactphp-http-proxy#65 being merged first.

Implements reactphp#513 for `react/http` v1.
Comment thread src/ProxyConnector.php Outdated
@clue clue force-pushed the remove_ringcentral_dep branch 2 times, most recently from 898413b to cef6368 Compare June 21, 2026 21:29
@clue clue requested a review from Copilot June 21, 2026 21:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the ringcentral/psr7 dependency by replacing PSR-7 response parsing with lightweight parsing of the HTTP status line returned from an HTTP CONNECT proxy, avoiding PSR-7 v1 constraints for downstream consumers.

Changes:

  • Remove ringcentral/psr7 from Composer requirements.
  • Replace proxy response parsing in ProxyConnector with a regex-based status-line parse and status-code handling.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/ProxyConnector.php Removes PSR-7 parsing and manually extracts status code/reason phrase from the proxy’s HTTP response.
composer.json Drops the ringcentral/psr7 dependency from require.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/ProxyConnector.php Outdated
Comment thread src/ProxyConnector.php Outdated
@clue clue force-pushed the remove_ringcentral_dep branch from cef6368 to 4f27f79 Compare June 21, 2026 22:12
@clue clue requested a review from Copilot June 21, 2026 22:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread src/ProxyConnector.php
@clue clue force-pushed the remove_ringcentral_dep branch from 4f27f79 to a36668d Compare June 21, 2026 23:07
…am projects would like to support psr/http-message ^2.0
@clue clue force-pushed the remove_ringcentral_dep branch from a36668d to bb64fe0 Compare June 21, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants