Skip to content

[REQ] [JAVA - FEIGN CLIENT] Allow selection of the feign httpClient #5709

@gaetPax

Description

@gaetPax

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions