-
Notifications
You must be signed in to change notification settings - Fork 82
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
Defer response headers processing to a finished callback #310
Conversation
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.
I think you can just register the finished callback in the __init__
and avoid keeping a reference to the request object.
As far as chaining response callbacks that's fine with me I suppose.
I still need a reference to an actual response object. Inside |
The only worry with this approach is, if it's possible that |
There is really no point in trying to be the last finished callback as even the first one does not have access to the response and if anyone is figuring out how to access it to change it there then I do not care if the toolbar tracks those changes or not. Adding the jump logic here is too defensive for this particular feature. Option 1: Just tweak the panel to add a Option 2: Use a single finished callback and hang onto the response from |
LGTM, thanks! We could initialize the |
Fixes #309