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

Does pluto able to intercept HTTP Request e.g other than Okhttp? #8

Closed
mochadwi opened this issue Aug 1, 2021 · 5 comments · Fixed by #225 or #272
Closed

Does pluto able to intercept HTTP Request e.g other than Okhttp? #8

mochadwi opened this issue Aug 1, 2021 · 5 comments · Fixed by #225 or #272
Labels
question Further information is requested

Comments

@mochadwi
Copy link

mochadwi commented Aug 1, 2021

e.g: HttpConnection, FastNetworking, Ktor, etc

@mocklets-tech
Copy link
Contributor

hey @mochadwi,
for now, Pluto intercepts only Okhttp requests.

if you have any specific usecase, do share with us, we will try to include it in our future releases.

@amankgo
Copy link

amankgo commented Aug 9, 2021

We can add an optional support for logging HttpURLConnection through URLStreamHandlerFactory, URLStreamHandler, URL.setURLStreamHandlerFactory()

Maybe some level of logging can be achieved through this.

See this answer: https://stackoverflow.com/a/26409796/2960297

@srtvprateek srtvprateek added the question Further information is requested label Aug 29, 2021
@mlilienberg
Copy link

The PlutoInterceptor works great but additionally it would be nice to have access to NetworkCallsRepo, so that anyone can write a custom interceptor for any http client. We would like to use this to write our own interceptors for gPRC clients based on io.grpc.ManagedChannel. In my opinion this should not be difficult to achieve, only ResponseData.Protocol needs to be changed to not depend on okhttp3.protocol.

@github-actions
Copy link

github-actions bot commented Jan 1, 2022

Stale issue

@srtvprateek
Copy link
Member

@mlilienberg nice feature suggestion.
will look into this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
5 participants