-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Is your feature request related to a problem? Please describe.
I would like to be able to provide my own HTTP client to interact with Telegram Bots API. In fact, JDK 11 HttpClient is sufficient to displace OkHttp usage while allowing to get rid of Kotlin & third-party dependencies and supporting CompletableFuture natively.
Describe the solution you'd like
Feign is a declarative HTTP client that allows users to use whatever HTTP client implementation they want (JDK 11 HttpClient, OkHttp, Apache HC, etc.). I think Feign is the best candidate for API wrapper libraries like telegram-bots.
Describe alternatives you've considered
An alternative might be a custom HttpClient interface with default OkHttp implementation. However, I think this approach would be an overengineering since Feign already exists.
Additional context
Unlike OkHttp, Feign is a declarative client, meaning that complete API methods rework is required bringing severe breaking changes.