-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Description
An improvement to the feign client generation would be to be able to select the HttpClient of the generated Feign client.
Feign modules are present to provide different http client implementation for your feign client.
Apache httpClient: https://github.com/OpenFeign/feign/tree/master/httpclient
OkHttp, Ribbon, etc....: https://github.com/OpenFeign/feign#okhttp
Use of different httpClient implementations becomes necessary in case your client requires features that are not supported by the default.
A problem i have in my project is that the default httpClient does not support Http PATCH method out of the box.
Ideal solution would be to add a 'feignHttpClient' property to the configOptions in order to set the desired feign httpClient implementation and update the templates accordingly.
Selection could be initially limited to the Apache httpClient (which supports PATCH) and extend it progressively to the other implementations.