function Client::transfer
Transfers the given request and applies request options.
The URI of the request is not modified and the request options are used as-is without merging in default options.
Parameters
array $options See \GuzzleHttp\RequestOptions.:
2 calls to Client::transfer()
- Client::requestAsync in vendor/
guzzlehttp/ guzzle/ src/ Client.php - Create and send an asynchronous HTTP request.
- Client::sendAsync in vendor/
guzzlehttp/ guzzle/ src/ Client.php - Asynchronously send an HTTP request.
File
-
vendor/
guzzlehttp/ guzzle/ src/ Client.php, line 326
Class
- Client
- @final
Namespace
GuzzleHttpCode
private function transfer(RequestInterface $request, array $options) : PromiseInterface {
$request = $this->applyOptions($request, $options);
/** @var HandlerStack $handler */
$handler = $options['handler'];
try {
return P\Create::promiseFor($handler($request, $options));
} catch (\Exception $e) {
return P\Create::rejectionFor($e);
}
}