google / cronet-transport-for-okhttp

This package allows OkHttp and Retrofit users to use Cronet as their transport layer, benefiting from features like QUIC/HTTP3 support or connection migration.
Apache License 2.0
452 stars 34 forks source link

How to use cronet-okhttp instead of okhttp as the client request library in spring boot? #35

Open zoujiaqing opened 5 months ago

zoujiaqing commented 5 months ago

As shown in the question.

My server only support HTTP/3 protocol.

How to use cronet-okhttp as RestClient or RestTemplate client library?

aymanm419 commented 4 months ago

If I understand correctly, Spring in general is used to develop micro-services and REST api which are usually run on machines rather than mobile devices. Cronet only supports running on Android devices which makes the spring-boot point irrelevant.

You can follow the documentation in the front-page to setup Cronet-over-Okhttp for your client app. Let me know if you need any more help