Skip to content

Commit 1e838de

Browse files
Merge branch '7.1' into 7.2
* 7.1: [HttpClient] Resolve hostnames in NoPrivateNetworkHttpClient [security-http] Check owner of persisted remember-me cookie
2 parents 075fadd + 1d497a7 commit 1e838de

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

HttpClientInterface.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ interface HttpClientInterface
4646
'buffer' => true, // bool|resource|\Closure - whether the content of the response should be buffered or not,
4747
// or a stream resource where the response body should be written,
4848
// or a closure telling if/where the response should be buffered based on its headers
49-
'on_progress' => null, // callable(int $dlNow, int $dlSize, array $info) - throwing any exceptions MUST abort
50-
// the request; it MUST be called on DNS resolution, on arrival of headers and on
51-
// completion; it SHOULD be called on upload/download of data and at least 1/s
49+
'on_progress' => null, // callable(int $dlNow, int $dlSize, array $info, ?Closure $resolve = null) - throwing any
50+
// exceptions MUST abort the request; it MUST be called on connection, on headers and on
51+
// completion; it SHOULD be called on upload/download of data and at least 1/s;
52+
// if passed, $resolve($host) / $resolve($host, $ip) can be called to read / populate
53+
// the DNS cache respectively
5254
'resolve' => [], // string[] - a map of host to IP address that SHOULD replace DNS resolution
5355
'proxy' => null, // string - by default, the proxy-related env vars handled by curl SHOULD be honored
5456
'no_proxy' => null, // string - a comma separated list of hosts that do not require a proxy to be reached

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy