HtpioRequest<T> class

Constructors

HtpioRequest({required String url, String method = 'GET', dynamic body, bool cacheEnabled = false, Duration? timeout, Map<String, String>? headers, T fromJson(Map<String, dynamic>)?, File? file, List<File>? files})

Properties

body → dynamic
final
cacheEnabled bool
final
file File?
final
files List<File>?
final
fromJson → T Function(Map<String, dynamic>)?
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
final
method String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration?
getter/setter pair
url String
final

Methods

cancel() → void
execute() Future<HtpioResponse<T>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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