Skip to content

mynameisbogdan/guzzle-throttle-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

$handlerStack = \GuzzleHttp\HandlerStack::create();
$handlerStack->push(new \MNIB\Guzzle\ThrottleMiddleware());

$httpClient = new \GuzzleHttp\Client(array(
    'handler' => $handlerStack,
    'throttle_delay' => 1000 // in milliseconds
));

About

Guzzle 6/7 middleware for delaying requests dynamically

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages