Skip to content
Snippets Groups Projects
Commit 55231fd5 authored by Nicolas Grekas's avatar Nicolas Grekas
Browse files

[HttpClient] Various cleanups after recent changes

parent fa0153b0
No related branches found
Tags v2.5.4
No related merge requests found
......@@ -48,11 +48,9 @@ interface HttpClientInterface
'buffer' => true, // bool|resource|\Closure - whether the content of the response should be buffered or not,
// or a stream resource where the response body should be written,
// or a closure telling if/where the response should be buffered based on its headers
'on_progress' => null, // callable(int $dlNow, int $dlSize, array $info, ?Closure $resolve = null) - throwing any
// exceptions MUST abort the request; it MUST be called on connection, on headers and on
// completion; it SHOULD be called on upload/download of data and at least 1/s;
// if passed, $resolve($host) / $resolve($host, $ip) can be called to read / populate
// the DNS cache respectively
'on_progress' => null, // callable(int $dlNow, int $dlSize, array $info) - throwing any exceptions MUST abort the
// request; it MUST be called on connection, on headers and on completion; it SHOULD be
// called on upload/download of data and at least 1/s
'resolve' => [], // string[] - a map of host to IP address that SHOULD replace DNS resolution
'proxy' => null, // string - by default, the proxy-related env vars handled by curl SHOULD be honored
'no_proxy' => null, // string - a comma separated list of hosts that do not require a proxy to be reached
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment