Add HttpOptions::setHeader() to add or replace a single header
Allow mocking start_time info in MockResponse
Add MockResponse::fromFile() and JsonMockResponse::fromFile() methods to help using fixtures files
Add ThrottlingHttpClient to enable limiting the number of requests within a certain period
Deprecate the setLogger() methods of the NoPrivateNetworkHttpClient, TraceableHttpClient and ScopingHttpClient classes, configure the logger of the wrapped clients directly instead
7.0
Remove implementing Http\Message\RequestFactory from HttplugClient
6.4
Add HarFileResponseFactory testing utility, allow to replay responses from .har files
Add max_retries option to RetryableHttpClient to adjust the retry logic on a per request level
Add PingWehookMessage and PingWebhookMessageHandler
Enable using EventSourceHttpClient::connect() for both GET and POST
6.3
Add option crypto_method to set the minimum TLS version and make it default to v1.2
Add UriTemplateHttpClient to use URI templates as specified in the RFC 6570
Add ServerSentEvent::getArrayData() to get the Server-Sent Event's data decoded as an array when it's a JSON payload
Allow array of urls as base_uri option value in RetryableHttpClient to retry on a new url each time
Add JsonMockResponse, a MockResponse shortcut that automatically encodes the passed body to JSON and sets the content type to application/json by default
Support file uploads by nesting resource streams in option "body"
6.2
Make HttplugClient implement Psr\Http\Message\RequestFactoryInterface, StreamFactoryInterface and UriFactoryInterface
Deprecate implementing Http\Message\RequestFactory, StreamFactory and UriFactory on HttplugClient
Add withOptions() to HttplugClient and Psr18Client
6.1
Allow yielding Exception from MockResponse's $body to mock transport errors
Remove credentials from requests redirected to same host but different port
5.4
... (truncated)
Commits
87ca825 [HttpClient][Mailer] Revert "Let curl handle transfer encoding", use HTTP/1.1...
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on symfony/http-client to permit the latest version.
Release notes
Sourced from symfony/http-client's releases.
Changelog
Sourced from symfony/http-client's changelog.
... (truncated)
Commits
87ca825
[HttpClient][Mailer] Revert "Let curl handle transfer encoding", use HTTP/1.1...60caaca
[HttpClient] Fix parsing SSE970a4d5
Revert "minor #54653 Auto-close PRs on subtree-splits (nicolas-grekas)"3f4cc73
[HttpClient] Revert fixing curl default optionsff1235a
[HttpClient] Fix cURL default options3cdc551
Auto-close PRs on subtree-splitsead44ee
[HttpClient] Let curl handle transfer encodingab3240a
fix syntax for PHP 7.2bc1710e
bug #54242 [HttpClient] [EventSourceHttpClient] Fix consuming SSEs with \r\n ...2a29219
Fix testsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show