http4k Connect is a lightweight API Client toolkit which includes libraries for connecting to popular third-party cloud services and AI backends
See the docshttp4k Connect integrates with many popular Cloud and AI HTTP APIs.
In true http4k-style, Connect clients rely on minimal dependencies and zero reflection, perfect for lightweight and security-conscious applications.
Extension of the clients is as simple as combining function calls or implementing a single data class with just 2 simple methods.
Every API Client leverages Result types and is exception-safe, so you can finally code like it's Kotlin that you're writing!
Connect API Clients have been used to build high volume applications in Banking, Publishing, eCommerce & Government projects.
Most API Clients come with an in-memory cloud-service fake which can be used for lightning
fast test suites or spun up as a server.
All fakes are chaos-enabled, so you can test what happens to your code in failure scenarios.
Most API Client libraries hide their HTTP client from you, stopping you from implementing
observability or customisation.
Connect allows any http4k client module to be plugged in, so you can leverage the full power
of http4k
API Clients leverage TinyTypes to provide typesafe coding and automatic
serialisation.
Stop relying on unsafe, stringly-typed APIs.
Ships with a storage abstraction for simple key-value storage, and adapters for popular
backends.
Plugin in-memory, S3, JDBC or Redis with a single line of code!
1. Instantiate your API Client and use, injecting your own HTTP client for observability.
2. Is your API action not supported? No problem - simply create your own by extension!
1. An API Action is just an interface with methods for marshalling the contents of HTTP messages.
2. An API Client is just a class with a single function and handles with the transport for the remote API.
3. Implement any individual Action for your API with a single class and a extension method. Compose multiple calls together without bloating your API Client!
4. Instantiate the API Client by passing in the HTTP client and other transport requirements, and call it as normal. Exceptions are trapped in the returned Result.
http4k partners with selected organisations to fund and explore continued innovation around our projects. If your company is using http4k and would like to take advantage of this program, please get in touch.