Skip to main content

w_tools_api 1.0.0 copy "w_tools_api: ^1.0.0" to clipboard
w_tools_api: ^1.0.0 copied to clipboard

w_tools 的网络层:基于 Dio 提供多客户端注册、日志与 Token 拦截器、统一错误处理及 Repository 基类,可按域名管理多个客户端。

Changelog #

1.0.0 #

首次发布。

  • 新增 DioRegistry:按 baseUrl 缓存并复用 Dio 实例,支持 dispose / clearCache
  • 新增 WApiConfig:统一默认 BaseOptions
  • 新增 WLogInterceptor:请求 / 响应 / 错误日志
  • 新增 WTokenInterceptor:Token 注入、401 刷新与并发 single-flight
  • 新增 BaseRepository:统一请求入口与错误处理
  • 新增 IApiPath / ApiClientId:基础 URL 契约与客户端标识
0
likes
135
points
62
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

w_tools 的网络层:基于 Dio 提供多客户端注册、日志与 Token 拦截器、统一错误处理及 Repository 基类,可按域名管理多个客户端。

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#flutter #dio #networking #interceptors

License

MIT (license)

Dependencies

dio, flutter

More

Packages that depend on w_tools_api