-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LimitHandlers Middleware #218
LimitHandlers Middleware #218
Conversation
$body->expects($this->once())->method('pause'); | ||
$body->expects($this->once())->method('resume'); | ||
$limitHandlers = new LimitHandlers(1); | ||
$limitHandlers(new ServerRequest('GET', 'https://example.com/', [], $body), function () {}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[]
-> array()
for our old friend PHP 5.3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed -.-
If find the
|
|
@jsor what do you think about: |
@WyriHaximus That might work, yes. Maybe @clue has some more ideas. |
Removed the mile stone because we hit a few roadblocks implementing this properly. Leaving this open for the time until we find a solution. |
LimitHandlers Middleware split off from #213
Assumes to be used with #215
Is blocked by #216 for the readme (will create merge conflicts otherwise)
Not sure about name,
LimitConcurrentHandlers
might be a better name, thoughts?