okhttp icon indicating copy to clipboard operation
okhttp copied to clipboard

Adding QUIC entry to Protocol enum

Open ypyu2000 opened this issue 9 years ago • 8 comments

We are adding QUIC (https://www.chromium.org/quic) support to the OKHttp by adding a QUIC interceptor. The QUIC interceptor can transmit request packets and response packets over QUIC between the OKHttp client and a QUIC proxy or a QUIC server. To integrate QUIC into existing okhttp codes, we plan to add QUIC(“quic”) to the Protocol enum in Protocol.java to be used in the QUIC interceptor. We can contribute back the QUIC interceptor to the OKHttp git if this addition can be approved. Can the committee approve this addition? Thanks.

ypyu2000 avatar Nov 14 '17 01:11 ypyu2000

Sure. Who is “we” ?

swankjesse avatar Nov 14 '17 22:11 swankjesse

The networking team at Uber developed the QUIC interceptor. It's pretty nifty! Not sure whether this kind of thing would live inside or outside of OkHttp. Instead of having the interceptor live inside OkHttp we could just add an API to support custom protocols.

Once we have the Interceptor hosted on Git we'll ping this thread.

naturalwarren avatar Dec 04 '17 21:12 naturalwarren

  • 1 for support for custom protocol api :) That would be awesome..

vinothchandar avatar Dec 06 '17 19:12 vinothchandar

Where could one find this QUIC interceptor?

cfsbhawkins avatar Jan 08 '18 22:01 cfsbhawkins

@cfsbhawkins Not open sourced as of now.

vinothchandar avatar Jan 17 '18 18:01 vinothchandar

Done!

swankjesse avatar Feb 18 '18 19:02 swankjesse

Is the QUIC interceptor open sourced yet? Or can anyone help me find some resource to build one? Thanks

esafirm-tiket avatar Jul 09 '21 08:07 esafirm-tiket

See Cronet example which should support Quic https://medium.com/the-react-native-log/using-cronet-in-your-mobile-app-7dda3a89c132

yschimke avatar Jul 09 '21 16:07 yschimke