class ThrottleApi implements MiddlewareInterface

Methods

__construct(array $throttlers)

No description

ResponseInterface
process(ServerRequestInterface $request, RequestHandlerInterface $handler)

No description

bool
throttle(ServerRequestInterface $request)

No description

Details

__construct(array $throttlers)

Parameters

array $throttlers

ResponseInterface process(ServerRequestInterface $request, RequestHandlerInterface $handler)

Parameters

ServerRequestInterface $request
RequestHandlerInterface $handler

Return Value

ResponseInterface

bool throttle(ServerRequestInterface $request)

Parameters

ServerRequestInterface $request

Return Value

bool