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

Breadcrumb

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

interface HttpAsyncClient

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

@author Joel Wurtz <joel.wurtz@gmail.com>

Hierarchy

  • interface \Http\Client\HttpAsyncClient

Expanded class hierarchy of HttpAsyncClient

All classes that implement HttpAsyncClient

7 files declare their use of HttpAsyncClient
Client.php in vendor/php-http/guzzle7-adapter/src/Client.php
CommonClassesStrategy.php in vendor/php-http/discovery/src/Strategy/CommonClassesStrategy.php
DependencyResolver.php in vendor/open-telemetry/sdk/Common/Adapter/HttpDiscovery/DependencyResolver.php
HttpAsyncClientDiscovery.php in vendor/php-http/discovery/src/HttpAsyncClientDiscovery.php
HttpPlugClientResolver.php in vendor/open-telemetry/sdk/Common/Adapter/HttpDiscovery/HttpPlugClientResolver.php

... See full list

File

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

Namespace

Http\Client
View source
interface HttpAsyncClient {
    
    /**
     * Sends a PSR-7 request in an asynchronous way.
     *
     * Exceptions related to processing the request are available from the returned Promise.
     *
     * @return Promise resolves a PSR-7 Response or fails with an Http\Client\Exception
     *
     * @throws \Exception If processing the request is impossible (eg. bad configuration).
     */
    public function sendAsyncRequest(RequestInterface $request);

}

Members

Title Sort descending Modifiers Object type Summary Overrides
HttpAsyncClient::sendAsyncRequest public function Sends a PSR-7 request in an asynchronous way. 1

API Navigation

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