Skip to content

Implemented HTTP client#79

Open
PeeHaa wants to merge 1 commit into
php:masterfrom
PeeHaa:http-client
Open

Implemented HTTP client#79
PeeHaa wants to merge 1 commit into
php:masterfrom
PeeHaa:http-client

Conversation

@PeeHaa

@PeeHaa PeeHaa commented May 21, 2019

Copy link
Copy Markdown
Contributor

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

petk commented May 22, 2019

Copy link
Copy Markdown
Member

Sounds ok with me...

@petk

petk commented May 23, 2019

Copy link
Copy Markdown
Member

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

derickr commented Jul 31, 2024

Copy link
Copy Markdown
Member

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