intercepted_http 0.1.0
intercepted_http: ^0.1.0 copied to clipboard
A composable HTTP interceptor layer for package:http. Add auth headers, token refresh, retry logic, and logging without replacing your HTTP client.
Changelog #
0.1.0 #
- Initial release.
InterceptedHttp— drop-inhttp.Clientwrapper with interceptor support.HttpInterceptor— base class withonRequest,onResponse,onError,shouldRetry.HttpClientException— typed exception for 4xx/5xx responses with JSON message extraction.- Configurable timeout, max retries, and inner client.