Is there a callback for all responses, not just the main frame's response? #277
Unanswered
postmodern
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
There's https://github.com/rubycdp/ferrum#network which is an array of all request/response pairs. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First off, Ferrum is an amazing project! I am trying to figure out how to setup a callback to receive all responses (main frame + any additional background AJAX/XHR responses). Is this possible? Digging through the source code there is a private method called
subscribe_response_receivedwhich uses aNetwork.responseReceivedevent hook, which does return aparamsHash, but I can't seem to successfully map that back to theNetwork::RequestandNetwork::Responseobjects.Beta Was this translation helpful? Give feedback.
All reactions