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

Breadcrumb

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

function ClientTrait::requestAsync

Create and send an asynchronous HTTP request.

Use an absolute path to override the base path of the client, or a relative path to append to the base path of the client. The URL can contain the query string as well. Use an array to provide a URL template and additional variables to use in the URL template expansion.

Parameters

string $method HTTP method:

string|UriInterface $uri URI object or string.:

array $options Request options to apply.:

6 calls to ClientTrait::requestAsync()
ClientTrait::deleteAsync in vendor/guzzlehttp/guzzle/src/ClientTrait.php
Create and send an asynchronous HTTP DELETE request.
ClientTrait::getAsync in vendor/guzzlehttp/guzzle/src/ClientTrait.php
Create and send an asynchronous HTTP GET request.
ClientTrait::headAsync in vendor/guzzlehttp/guzzle/src/ClientTrait.php
Create and send an asynchronous HTTP HEAD request.
ClientTrait::patchAsync in vendor/guzzlehttp/guzzle/src/ClientTrait.php
Create and send an asynchronous HTTP PATCH request.
ClientTrait::postAsync in vendor/guzzlehttp/guzzle/src/ClientTrait.php
Create and send an asynchronous HTTP POST request.

... See full list

1 method overrides ClientTrait::requestAsync()
Client::requestAsync in vendor/guzzlehttp/guzzle/src/Client.php
Create and send an asynchronous HTTP request.

File

vendor/guzzlehttp/guzzle/src/ClientTrait.php, line 144

Class

ClientTrait
Client interface for sending HTTP requests.

Namespace

GuzzleHttp

Code

public abstract function requestAsync(string $method, $uri, array $options = []) : PromiseInterface;

API Navigation

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