Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Client.php

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

GuzzleHttp

Code

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);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal