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

Breadcrumb

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

function Client::send

Send an HTTP request.

Parameters

array $options Request options to apply to the given: request and to the transfer. See \GuzzleHttp\RequestOptions.

Throws

GuzzleException

Overrides ClientInterface::send

File

vendor/guzzlehttp/guzzle/src/Client.php, line 120

Class

Client
@final

Namespace

GuzzleHttp

Code

public function send(RequestInterface $request, array $options = []) : ResponseInterface {
    $options[RequestOptions::SYNCHRONOUS] = true;
    return $this->sendAsync($request, $options)
        ->wait();
}

API Navigation

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