-
Notifications
You must be signed in to change notification settings - Fork 70
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
Refactor ProxyHttpEventArgsBase to move throttled requests to pluginData #507
Comments
Moving information about the throttled requests to pluginData wouldn't be natural. Right now, plugin data is tied to session (single request+response). On the other hand, throttled requests apply as long as proxy is running. As such, it would be clearer to:
Thoughts @garrytrinder? |
I agree with the approach. In terms of naming, in the HTTP spec a request\response is referred to as an How about we use |
To be honest, without knowing the spec, if I just looked at |
Let's go with your original suggestions then, |
Fixes bug in handling dynamic retry-after Fixes bug in removing expired throttlers
As we've introduced pluginData in ProxyEngine in #506, let's see if we can refactor ProxyHttpEventArgsBase and move throttled requests from its constructor into pluginData. Throttling belongs to plugins and shouldn't be explicitly exposed in the engine or event args.
The text was updated successfully, but these errors were encountered: