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

Breadcrumb

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

function HttpAsyncClient::sendAsyncRequest

Sends a PSR-7 request in an asynchronous way.

Exceptions related to processing the request are available from the returned Promise.

Return value

Promise resolves a PSR-7 Response or fails with an Http\Client\Exception

Throws

\Exception If processing the request is impossible (eg. bad configuration).

1 method overrides HttpAsyncClient::sendAsyncRequest()
Client::sendAsyncRequest in vendor/php-http/guzzle7-adapter/src/Client.php
Sends a PSR-7 request in an asynchronous way.

File

vendor/php-http/httplug/src/HttpAsyncClient.php, line 24

Class

HttpAsyncClient
Sends a PSR-7 Request in an asynchronous way by returning a Promise.

Namespace

Http\Client

Code

public function sendAsyncRequest(RequestInterface $request);

API Navigation

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