Re: [RFC][DISCUSSION] Object-oriented curl API v2

From: Date: Wed, 02 Jul 2025 16:10:23 +0000
Subject: Re: [RFC][DISCUSSION] Object-oriented curl API v2
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-127840@lists.php.net to get a copy of this message
On Wed, Jul 2, 2025, at 10:48 AM, Eric Norris wrote: > Having thought about this some more, while I'm still feeling somewhat > positive about my suggestion I'm just not sure it's the best way to > proceed. I started to sketch what a BasicHttpHandle class would look > like, and I'm stuck on how to get data about the response out of the > class. Another thing I just realized. IF we have an in-core HTTP client we intend for end-users to use (as opposed to just a less-sucky Curl that only Guzzle and Symfony to use), it needs to have a defined interface to go along with it so that people can mock it for testing purposes. I would consider this a hard requirement for any "user facing" HTTP client. --Larry Garfield

« previous php.internals (#127840) next »