spring-cloud-openfeign
spring-cloud-openfeign copied to clipboard
Are there any plans to support http/2.0
http server enable http2.0 . But feign client still uses http/1.1 protocol
hello @OlgaMaciaszek , can you assign this issue to me.
Sure @galaxy-sea :) .
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.
hello @OlgaMaciaszek , feign.hc5.ApacheHttp5Client
does not support the http2, but feign.hc5.AsyncApacheHttp5Client
supports http2
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 |
Maybe we need to implement the http2 protocol on the basis of Async feign flow #511.