private ?\Closure
$chunkFilter;
public function __construct(HttpClientInterface
$client, \Closure
$chunkFilter = null
) { $this->chunkFilter =
$chunkFilter;
$this->client =
$client;
} public function request(string
$method, string
$url, array
$options =
[]): ResponseInterface
{ return new AsyncResponse($this->client,
$method,
$url,
$options,
$this->chunkFilter
);
} };
} public function testTimeoutOnDestruct() { if (HttpClient::
create() instanceof NativeHttpClient
) { $this->
markTestSkipped('NativeHttpClient doesn\'t support opening concurrent requests.'
);
} HttpClientTestCase::
testTimeoutOnDestruct();
}