-
Notifications
You must be signed in to change notification settings - Fork 376
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
Store latest response in the browser state #358
Comments
Thanks for your question, and sorry for the delayed response! While the response is not stored in the browser state, it is returned by all methods that produce one. Is that sufficient, or do you really need it to be carried along with the That said, I can't think of any compelling reason to not store the response in the browser state. Does anyone else have any thoughts about this? |
Hi @hemberger, Thanks for the feedback on this one! My use case is typically to consume the Storing the last |
Whenever we set the browser state, include the request response. The `response` property will raise an `AttributeError` if the state has not yet been set. This is not strictly necessary, since we return the request response in most functions that have one, but it is perhaps a convenience in some scenarios. Closes MechanicalSoup#358.
Whenever we set the browser state, include the request response. The `response` property will raise an `AttributeError` if the state has not yet been set. This is not strictly necessary, since we return the request response in most functions that have one, but it is perhaps a convenience in some scenarios. Closes MechanicalSoup#358.
Hi,
It seems the latest request and soup is stored in the browser state but not the latest response object. I have a use case where this would be useful, typically for getting access to headers defined in the last response (content-type for non HTML content for example).
Would it make sense to write something to store the last response in the browser state?
Best,
The text was updated successfully, but these errors were encountered: