Skip to content
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

How to retrieve response code of a page loaded in a Tab? #468

Open
dkvasnicka opened this issue Mar 7, 2024 · 0 comments
Open

How to retrieve response code of a page loaded in a Tab? #468

dkvasnicka opened this issue Mar 7, 2024 · 0 comments

Comments

@dkvasnicka
Copy link

I know I can register a handler via register_response_handling and I've successfully got to the response code and printed it. Applying logic isolated inside an async callback like Box<dyn Fn(ResponseReceivedEventParams, ... is simple but trying to get the value out to be able to do something with it inside main seems like a massive PITA... maybe I'm missing something.

What's the simplest way to retrieve the response code of the top-level URL request after a Tab finishes navigating?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant