CHANGELOG ========= 5.4 --- * Add `MockHttpClient::setResponseFactory()` method to be able to set response factory after client creating 5.3 --- * Implement `HttpClientInterface::withOptions()` from `symfony/contracts` v2.4 * Add `DecoratorTrait` to ease writing simple decorators 5.2.0 ----- * added `AsyncDecoratorTrait` to ease processing responses without breaking async * added support for pausing responses with a new `pause_handler` callable exposed as an info item * added `StreamableInterface` to ease turning responses into PHP streams * added `MockResponse::getRequestMethod()` and `getRequestUrl()` to allow inspecting which request has been sent * added `EventSourceHttpClient` a Server-Sent events stream implementing the [EventSource specification](https://www.w3.org/TR/eventsource/#eventsource) * added option "extra.curl" to allow setting additional curl options in `CurlHttpClient` * added `RetryableHttpClient` to automatically retry failed HTTP requests. * added `extra.trace_content` option to `TraceableHttpClient` to prevent it from keeping the content in memory 5.1.0 ----- * added `NoPrivateNetworkHttpClient` decorator * added `AmpHttpClient`, a portable HTTP/2 implementation based on Amp * added `LoggerAwareInterface` to `ScopingHttpClient` and `TraceableHttpClient` * made `HttpClient::create()` return an `AmpHttpClient` when `amphp/http-client` is found but curl is not or too old 4.4.0 ----- * added `canceled` to `ResponseInterface::getInfo()` * added `HttpClient::createForBaseUri()` * added `HttplugClient` with support for sync and async requests * added `max_duration` option * added support for NTLM authentication * added `StreamWrapper` to cast any `ResponseInterface` instances to PHP streams. * added `$response->toStream()` to cast responses to regular PHP streams * made `Psr18Client` implement relevant PSR-17 factories and have streaming responses * added `TraceableHttpClient`, `HttpClientDataCollector` and `HttpClientPass` to 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
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Chunk | Folder | 0755 |
|
|
DataCollector | Folder | 0755 |
|
|
DependencyInjection | Folder | 0755 |
|
|
Exception | Folder | 0755 |
|
|
Internal | Folder | 0755 |
|
|
Response | Folder | 0755 |
|
|
Retry | Folder | 0755 |
|
|
AmpHttpClient.php | File | 7.41 KB | 0644 |
|
AsyncDecoratorTrait.php | File | 1.37 KB | 0644 |
|
CHANGELOG.md | File | 2.18 KB | 0644 |
|
CachingHttpClient.php | File | 5.44 KB | 0644 |
|
CurlHttpClient.php | File | 22.84 KB | 0644 |
|
DecoratorTrait.php | File | 1.5 KB | 0644 |
|
EventSourceHttpClient.php | File | 5.75 KB | 0644 |
|
HttpClient.php | File | 3.46 KB | 0644 |
|
HttpClientTrait.php | File | 27.39 KB | 0644 |
|
HttpOptions.php | File | 5.62 KB | 0644 |
|
HttplugClient.php | File | 9.88 KB | 0644 |
|
LICENSE | File | 1.04 KB | 0644 |
|
MockHttpClient.php | File | 4.16 KB | 0644 |
|
NativeHttpClient.php | File | 19.23 KB | 0644 |
|
NoPrivateNetworkHttpClient.php | File | 4.12 KB | 0644 |
|
Psr18Client.php | File | 8.37 KB | 0644 |
|
README.md | File | 913 B | 0644 |
|
RetryableHttpClient.php | File | 5.89 KB | 0644 |
|
ScopingHttpClient.php | File | 4.08 KB | 0644 |
|
TraceableHttpClient.php | File | 3.49 KB | 0644 |
|
composer.json | File | 1.74 KB | 0644 |
|