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

Breadcrumb

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

function HandlerStack::unshift

Unshift a middleware to the bottom of the stack.

Parameters

callable(callable): callable $middleware Middleware function:

string $name Name to register for this middleware.:

File

vendor/guzzlehttp/guzzle/src/HandlerStack.php, line 134

Class

HandlerStack
Creates a composed Guzzle handler function by stacking middlewares on top of an HTTP handler function.

Namespace

GuzzleHttp

Code

public function unshift(callable $middleware, ?string $name = null) : void {
    \array_unshift($this->stack, [
        $middleware,
        $name,
    ]);
    $this->cached = null;
}

API Navigation

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