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

Implemented HTTP client #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Implemented HTTP client #79

wants to merge 1 commit into from

Conversation

PeeHaa
Copy link
Contributor

@PeeHaa PeeHaa commented May 21, 2019

Currently mocking (and testing) anything that makes HTTP requests is pretty much impossible due to the tight coupling of file_get_contents() calls.

This PR adds an HTTP client (and interface) to make this possible / easier. While also providing a uniform way to make HTTP requests (including error handling and responses).

Todo: when the need arises implement file uploads, but from a quick look through the code base I did see see the need for it yet.

Todo2: when agreed that this PR is a useful addition move away from the direct fgc() calls and implement the HTTP client calls instead.

@petk
Copy link
Member

petk commented May 22, 2019

Sounds ok with me...

@petk
Copy link
Member

petk commented May 23, 2019

I cannot merge this anymore because I left the web team so you're free to change the project according to your likings and your workflow. Thanks.

@derickr
Copy link
Member

derickr commented Jul 31, 2024

bugs.php.net is no longer really used, and hence, we're sunsetting it. Due to that, I don't think it makes sense to merge this patch.

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.

3 participants