Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HTTP layer to encapsulate SimplePie\File #758

Closed
wants to merge 36 commits into from

Conversation

Art4
Copy link
Contributor

@Art4 Art4 commented Oct 24, 2022

This PR will add a new layer for all HTTP requests to encapsulate the usage of the SimplePie\File.

I propose this PR for SimplePie 1.8.0, see #731. This also refs #520.

I created the new SimplePie\HTTP\Client and SimplePie\HTTP\Response interfaces inspired by PSR-18. Next I created the adapter SimplePie\HTTP\FileClient to allow HTTP requests via SimplePie\File class. In a followup PR a new adapter will be possible to use a PSR-18 implementation directly.

Encapsulate the usage of the SimplePie\File while keeping BC seems to be a complicated task. Therefor I've created this PR in an early draft stage. I invite everyone to give me early feedback.

@Art4 Art4 marked this pull request as draft October 24, 2022 14:39
@Art4
Copy link
Contributor Author

Art4 commented Oct 31, 2022

This PR will become to large and complex for reviews. Therefor I will try to split the PR into multiple smaller PRs. This branch will serve me for further experiments on the poc, but I close the PR for now.

@Art4 Art4 closed this Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant