Skip to main content

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

REST calls for brix – Dio by default, any client possible. Every call returns a Result; backend messages, field errors and logout on 401 handled.

1.0.1 #

  • README: flow diagrams showing what happens on a tap / in a call.

1.0.0 #

First release.

  • BrixApi: get, post, put, patch, delete, upload, request – every call returns a brix Result, data parsed with Json.
  • DioNetworkClient (default): timeout, retries for GET / PUT / DELETE only, cancel (RequestCancel), upload progress; NetworkClient to use any other library.
  • ResponseReader: envelope (Node, NestJS, Laravel, custom), FastAPI, Django REST and custom readers; messages and field errors from any error shape.
  • StandardStatus.map (status → Failure), replaceable with statusMapper.
  • 401 → onUnauthorized once for many calls, logoutOn401 to skip paths (login).
  • Identical GETs at the same time share one request.
  • PrettyNetworkLogger: one readable box per call, secrets hidden, off in release builds.
1
likes
0
points
1.14k
downloads

Publisher

unverified uploader

Weekly Downloads

REST calls for brix – Dio by default, any client possible. Every call returns a Result; backend messages, field errors and logout on 401 handled.

Repository (GitHub)
View/report issues

Topics

#network #http #dio #rest-api #api

License

unknown (license)

Dependencies

brix, dio, meta

More

Packages that depend on brix_network