philiprehberger_api_client 0.3.0
philiprehberger_api_client: ^0.3.0 copied to clipboard
Declarative API client with typed responses, retries, and interceptors
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased] #
0.3.0 - 2026-04-02 #
Added #
Middlewareabstract class for composable request/response pipelineAuthMiddlewarefor automaticAuthorizationheader injectionLoggingMiddlewarefor request/response loggingApiClient.addMiddleware()andremoveMiddleware()ApiClient.postMultipart()andputMultipart()for file uploadsMultipartFilevalue class for multipart form data
0.2.0 - 2026-04-01 #
Added #
CacheInterceptorfor in-memory GET response caching with TTL and max entriesgetTyped<T>()method for typed deserialization of GET responsespostTyped<T>()method for typed deserialization of POST responses
0.1.0 - 2026-04-01 #
Added #
- Initial release
- Declarative API client with
get,post,put,patch,deletemethods - Typed
ApiResponsewith JSON accessors (json,jsonMap,jsonList) - Status helpers (
isSuccess,isClientError,isServerError) - Interceptor system for cross-cutting concerns
HeaderInterceptorfor automatic header injectionLogInterceptorfor request/response loggingRetryConfigwith exponential backoff and configurable retryable statusesApiError,HttpError,TimeoutError, andRetryExhaustedErrortypes