HtpioClient class

Constructors

HtpioClient()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addInterceptor(HtpioInterceptor interceptor) → void
deleteRequest<T>({required String endpoint, required T fromJson(Map<String, dynamic>), String? authToken}) Future<HtpioResponse<T>>
getRequest<T>({required String endpoint, required T fromJson(Map<String, dynamic>), String? authToken}) Future<HtpioResponse<T>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postFilesWithDataRequest<T>({required String endpoint, required String fileJsonKey, required List<File> files, required Map<String, String>? data, required T fromJson(Map<String, dynamic>)}) Future<HtpioResponse<T>>
postRequest<T>({required String endpoint, required dynamic data, required T fromJson(Map<String, dynamic>), String? authToken}) Future<HtpioResponse<T>>
postSingleFileWithDataRequest<T>({required String endpoint, required String fileJsonKey, required File file, required Map<String, String>? data, required T fromJson(Map<String, dynamic>)}) Future<HtpioResponse<T>>
putRequest<T>({required String endpoint, required dynamic data, required T fromJson(Map<String, dynamic>), String? authToken}) Future<HtpioResponse<T>>
send<T>(HtpioRequest<T> request) Future<HtpioResponse<T>>
toString() String
A string representation of this object.
inherited
use(HtpioMiddleware middleware) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited