sleek_http_client 1.0.0
sleek_http_client: ^1.0.0 copied to clipboard
A sleek, pure-Dart HTTP client with connectivity checking, token refresh, multipart support, and structured logging.
Changelog #
1.0.0 #
- BREAKING Replaced
HttpRetryPolicy/HttpRetryPolicyBuilder/TokenRefreshHandlerandHttpClientLogConfig(logConfig) with a single composableHttpInterceptorchain (SleekHttpClient.interceptors), includingTokenRefreshInterceptorandLoggingInterceptor. - BREAKING
send<T>/sendMultipartRequest<T>now returnTinstead ofT?.T's own nullability drives behavior forJsonObject/JsonList:send<JsonObject>()requires a non-null body and throws the newNullResponseBodyExceptionif the server returns JSONnull, whilesend<JsonObject?>()returnsnullin that case. A malformed body or unexpected JSON shape always throws (FormatException/TypeError), regardless of nullability — it is no longer silently swallowed tonull.
0.1.0 #
- Initial release