You are here

final class HttpClientEvents in HTTP Client Manager 8.2

Defines events for HTTP Client Manager clients.

@package Drupal\http_client_manager\Event

Hierarchy

Expanded class hierarchy of HttpClientEvents

2 files declare their use of HttpClientEvents
HttpClient.php in src/HttpClient.php
HttpClientManagerExampleSubscriber.php in modules/http_client_manager_example/src/EventSubscriber/HttpClientManagerExampleSubscriber.php

File

src/Event/HttpClientEvents.php, line 10

Namespace

Drupal\http_client_manager\Event
View source
final class HttpClientEvents {

  /**
   * The name of the event fired when configuring client handlers stacks.
   *
   * This event allows you to add an handler to the stack whenever an HTTP
   * client is created. The event listener method receives a
   * \Drupal\http_client_manager\Event\HttpClientHandlerStackEvent instance.
   *
   * @Event
   */
  const HANDLER_STACK = 'http_client.handler_stack';

}

Members

Namesort descending Modifiers Type Description Overrides
HttpClientEvents::HANDLER_STACK constant The name of the event fired when configuring client handlers stacks.