Client class

Constructors

Client(String serverIp, int serverPort, String path, {Map<String, dynamic>? query, bool verbose = false, bool isSecured = false, Map<String, String>? headers, List<int>? expectedStatusCodes, String contentType = 'application/json', int? timeout, Function? onTimeout})

Properties

contentType String
getter/setter pair
expectedStatusCodes List<int>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
final
headers Map<String, String>?
getter/setter pair
isSecured bool
getter/setter pair
ok int
final
onTimeout Function?
getter/setter pair
path String
getter/setter pair
query Map<String, dynamic>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverIp String
getter/setter pair
serverPort int
getter/setter pair
statusCode int?
no setter
timeout int?
getter/setter pair
uri String?
no setter
verbose bool
getter/setter pair

Methods

downloadBinary(String filePath, {String method = 'POST', String size = 'small', StreamController<double>? controller}) Future<Uint8List?>
getResponse({String method = 'POST', Map<String, String>? multipartInfo, Map<String, String>? files}) Future
httpsUri(String method) Uri
httpUri(String method) Uri
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