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

Intercept HTTP requests which are made by dart:io HttpClient #539

Open
ueman opened this issue Jul 27, 2021 · 2 comments
Open

Intercept HTTP requests which are made by dart:io HttpClient #539

ueman opened this issue Jul 27, 2021 · 2 comments

Comments

@ueman
Copy link
Collaborator

ueman commented Jul 27, 2021

This API might be a good starting point.

Sometimes Flutter makes HTTP requests itself. For example, for the network image widget. This would allow to track them.

A few gotchas: The requests from the SDK itself are maybe tracked, too. Also if it's used with http/dio integrations, there may be duplicated trackings because http and dio use dart:ios HttpClient

@ueman ueman changed the title Intercept HTTP requests which are made by Flutter itself Intercept HTTP requests which are made by dart:io HttpClient Jan 5, 2022
@marandaneto marandaneto moved this to Needs Discussion in Mobile & Cross Platform SDK Jan 10, 2022
@marandaneto marandaneto moved this from Needs Discussion to Backlog in Mobile & Cross Platform SDK Jan 13, 2022
@marandaneto
Copy link
Contributor

@ueman
Copy link
Collaborator Author

ueman commented May 25, 2023

Since this is pretty interesting for monitoring network image widgets, you can trivially work around this limitation by using an image provider backed by http or dio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

4 participants