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

Comment From: galaxy-sea

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

Comment From: OlgaMaciaszek

Sure @galaxy-sea :) .

Comment From: 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.

Comment From: galaxy-sea

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

Comment From: 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

Comment From: galaxy-sea

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