public function HandlerStack::before in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/guzzle/src/HandlerStack.php \GuzzleHttp\HandlerStack::before()
Add a middleware before 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 155
Class
- HandlerStack
- Creates a composed Guzzle handler function by stacking middlewares on top of an HTTP handler function.
Namespace
GuzzleHttpCode
public function before($findName, callable $middleware, $withName = '') {
$this
->splice($findName, $withName, $middleware, true);
}