network_caller_core 1.0.1 copy "network_caller_core: ^1.0.1" to clipboard
network_caller_core: ^1.0.1 copied to clipboard

Core interfaces, models, and typed exceptions for the network_caller federation. Pure Dart, zero dependencies.

1.0.1 #

  • Widened dependency constraints to support latest versions

1.0.0 #

  • Initial release
  • NetworkInterface abstract contract for GET, POST, PUT, PATCH, DELETE, upload, dispose
  • NetworkConfig with 18+ configurable options and smart defaults
  • NetworkResponse<T> generic response wrapper with responseHeaders and typed exception
  • ErrorResponse model with copyWith support
  • 10 typed exceptions: NetworkTimeoutException, NoConnectionException, UnauthorizedException, ClientException, ServerException, RateLimitException, ParseException, RequestCancelledException, SslException
  • 4 auth strategies: BearerAuthStrategy, ApiKeyAuthStrategy, BasicAuthStrategy, CustomAuthStrategy
  • RetryPolicy with exponential backoff, Retry-After header parsing, and configurable predicates
  • TokenStorage interface with InMemoryTokenStorage for testing
  • TokenManager instance-based token management with header building
  • NetworkLogger interface with ConsoleNetworkLogger default implementation
  • NetworkMiddleware request/response/error hooks
  • CancelToken abstract interface
  • ResponseParser shared parsing logic with unwrapper, message extractor, and error parser support
  • NetworkMultipartFile platform-agnostic file representation (no dart:io)
  • RequestMethod and ResponseType enums
  • Pure Dart — zero dependencies, supports all platforms
4
likes
160
points
33
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Core interfaces, models, and typed exceptions for the network_caller federation. Pure Dart, zero dependencies.

Homepage
Repository (GitHub)
View/report issues

Topics

#networking #http #api #rest #dio

License

MIT (license)

More

Packages that depend on network_caller_core