You are here

public function HandlerStack::after in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/guzzlehttp/guzzle/src/HandlerStack.php \GuzzleHttp\HandlerStack::after()

Add a middleware after another middleware by name.

Parameters

string $findName Middleware to find:

callable $middleware Middleware function:

string $withName Name to register for this middleware.:

File

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

Class

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

Namespace

GuzzleHttp

Code

public function after($findName, callable $middleware, $withName = '') {
  $this
    ->splice($findName, $withName, $middleware, false);
}