AllowedHostsMiddleware
Read onlyYes
    FinalYes
Guzzle client middleware for filtering allowed request targets (SSRF prevention)
Table of Contents
Methods
- __construct() : mixed
- __invoke() : callable(RequestInterface $request, array<string|int, mixed> $options): PromiseInterface
Methods
__construct()
    public
                    __construct(string $context, array<string|int, mixed> $allowedHosts) : mixed
    Parameters
- $context : string
- $allowedHosts : array<string|int, mixed>
__invoke()
    public
                    __invoke(callable(RequestInterface, array<string|int, mixed>): PromiseInterface $nextHandler) : callable(RequestInterface $request, array<string|int, mixed> $options): PromiseInterface
    Parameters
- $nextHandler : callable(RequestInterface, array<string|int, mixed>): PromiseInterface