2.7 KiB
2.7 KiB
CHANGELOG
6.2
- Make
HttplugClientimplementPsr\Http\Message\RequestFactoryInterface,StreamFactoryInterfaceandUriFactoryInterface - Deprecate implementing
Http\Message\RequestFactory,StreamFactoryandUriFactoryonHttplugClient - Add
withOptions()toHttplugClientandPsr18Client - Add support for "friendsofphp/well-known-implementations"
6.1
- Allow yielding
Exceptionfrom MockResponse's$bodyto mock transport errors - Remove credentials from requests redirected to same host but different port
5.4
- Add
MockHttpClient::setResponseFactory()method to be able to set response factory after client creating
5.3
- Implement
HttpClientInterface::withOptions()fromsymfony/contractsv2.4 - Add
DecoratorTraitto ease writing simple decorators
5.2.0
- added
AsyncDecoratorTraitto ease processing responses without breaking async - added support for pausing responses with a new
pause_handlercallable exposed as an info item - added
StreamableInterfaceto ease turning responses into PHP streams - added
MockResponse::getRequestMethod()andgetRequestUrl()to allow inspecting which request has been sent - added
EventSourceHttpClienta Server-Sent events stream implementing the EventSource specification - added option "extra.curl" to allow setting additional curl options in
CurlHttpClient - added
RetryableHttpClientto automatically retry failed HTTP requests. - added
extra.trace_contentoption toTraceableHttpClientto prevent it from keeping the content in memory
5.1.0
- added
NoPrivateNetworkHttpClientdecorator - added
AmpHttpClient, a portable HTTP/2 implementation based on Amp - added
LoggerAwareInterfacetoScopingHttpClientandTraceableHttpClient - made
HttpClient::create()return anAmpHttpClientwhenamphp/http-clientis found but curl is not or too old
4.4.0
- added
canceledtoResponseInterface::getInfo() - added
HttpClient::createForBaseUri() - added
HttplugClientwith support for sync and async requests - added
max_durationoption - added support for NTLM authentication
- added
StreamWrapperto cast anyResponseInterfaceinstances to PHP streams. - added
$response->toStream()to cast responses to regular PHP streams - made
Psr18Clientimplement relevant PSR-17 factories and have streaming responses - added
TraceableHttpClient,HttpClientDataCollectorandHttpClientPassto integrate with the web profiler - allow enabling buffering conditionally with a Closure
- allow option "buffer" to be a stream resource
- allow arbitrary values for the "json" option
4.3.0
- added the component