Comments (3)
This is an unfortunate known limitation of OkHttp interceptors: https://github.com/google/cronet-transport-for-okhttp#common-incompatibilities, and there's not much we can do about it from this library's standpoint. The only alternative approach I'm aware of would be to add the Cronet interceptor as a network interceptor but those are handled after after OkHttp's connection level logic (e.g. establishing and pooling connections) so it comes with its own drawbacks.
The existence of this library uncovered some limitations which are being addressed (square/okhttp#7164) so there's hope to address this properly, but realistically I won't have time to start any actual work before the end of the year.
from cronet-transport-for-okhttp.
Maybe it might prove useful to also state this in the Readme page (i.e. that the OkHttp 'authenticator' will also get bypassed).
The entirety of OkHttp core is bypassed. This includes caching, retries, and network interceptors. These features have to be enabled directly on the Cronet engine or built on top of this library.
from cronet-transport-for-okhttp.
That surely doesn't hurt, done.
from cronet-transport-for-okhttp.
Related Issues (20)
- Redirected URL HOT 2
- java.lang.IllegalStateException: There is no read or rewind or length check in progress CronetUploadDataStream HOT 5
- Could not find VERSION HOT 3
- ByteArrayOutputStream size cant be negative HOT 1
- Cronet with Retrofit is crashing due to file-descriptor leaks HOT 4
- Can you upgrade to Okhttp 4? HOT 1
- Consider removing the Guava dependency
- Add a parallel version using android.net.http.HttpEngine
- Requests are resolved through HTTP2 HOT 6
- Option for symbolicated traces HOT 1
- Occasional exceptions occur when sending network requests
- Q: IPC call when using Play Services Cronet provider? HOT 2
- ANRs when loading Cronet Provider HOT 1
- Contribution instructions HOT 2
- setURLStreamHandlerFactory is incompatible with Firebase HOT 3
- Samples should be a working gradle project HOT 1
- HttpLoggingInterceptor not logging after attaching CronetInterceptor HOT 1
- About the size of apk HOT 1
- Questions about header HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cronet-transport-for-okhttp.