httper library

Classes

Empty
The empty model for raw json {"code": 200, msg: "wow"}
Http
The Http class provides common http methods for generics. Such as: GET / POST / PUT / DELETE / POST file
Model<T>
The generics model for T

Typedefs

Callback200<T> = Future Function(T t)
The model callback for 200
Callback400<T> = Future Function(T t, String msg)
The model callback for 400
Callback401<T> = Future Function(T t, String msg)
The model callback for 401
Callback404<T> = Future Function(T t, String msg)
The model callback for 404
Callback500<T> = Future Function(T t, String msg)
The model callback for 500
CallbackError<T> = Future<void> Function(Object? error)
The model callback for error
CallbackOther<T> = Future Function(T t, String msg)
The model callback for others
Converter<T> = T Function(Map<String, dynamic> m)
The model convertor for T
EmptyModel = Model<Empty>
The empth model typedef alias
ResponseSetter = void Function(Response resp)
The ResponseSetter callback