spring-cloud-openfeign icon indicating copy to clipboard operation
spring-cloud-openfeign copied to clipboard

Are there any plans to support http/2.0

Open thousmile opened this issue 1 year ago • 6 comments

http server enable http2.0 . But feign client still uses http/1.1 protocol

thousmile avatar Dec 20 '22 05:12 thousmile

hello @OlgaMaciaszek , can you assign this issue to me.

galaxy-sea avatar Jan 17 '23 12:01 galaxy-sea

Sure @galaxy-sea :) .

OlgaMaciaszek avatar Jan 17 '23 12:01 OlgaMaciaszek

HTTP2 is supported by OkHttp and it's enabled by default. There's also support in Apache HC5. We should add the support for this within this issue.

OlgaMaciaszek avatar Feb 01 '23 13:02 OlgaMaciaszek

hello @OlgaMaciaszek , feign.hc5.ApacheHttp5Client does not support the http2, but feign.hc5.AsyncApacheHttp5Client supports http2

galaxy-sea avatar Feb 02 '23 14:02 galaxy-sea

I've sorted out the clients that support the http2 protocol. AsyncClients is the best for supporting the http2 protocol.

client http/2.0
feign.Client.Default no
feign.hc5.ApacheHttp5Client no
feign.okhttp.OkHttpClient yes
feign.http2client.Http2Client yes
AsyncClient http/2.0
feign.AsyncClient.Default yes
feign.hc5.AsyncApacheHttp5Client yes
ffeign.okhttp.OkHttpClient yes
feign.http2client.Http2Client yes

galaxy-sea avatar Feb 02 '23 15:02 galaxy-sea

Maybe we need to implement the http2 protocol on the basis of Async feign flow #511.

galaxy-sea avatar Feb 02 '23 15:02 galaxy-sea