RestClient class

Constructors

RestClient({String basePath})

Properties

basePath String
read / write
client ↔ Client
read / write
defaultHost String
read / write
hashCode int
The hash code for this object.
read-onlyinherited
host String
read / write
port int
read / write
protocol ProtocolType
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
setHostFromBrowser bool
read / write

Methods

deleteAll(String apiEndPoint, {Map<String, String> headers, List<Map<String, dynamic>> body, Map<String, String> queryParameters, Encoding encoding, String basePath, String protocol, String hosting, int hostPort}) Future<RestResponse>
get(String apiEndPoint, {RestClientMethod method, Map<String, dynamic> body, Map<String, String> headers, Map<String, String> queryParameters, String basePath, String protocol, String hosting, int hostPort}) Future<RestResponse>
getInstance() RestClient
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
post(String apiEndPoint, {Map<String, String> headers, dynamic body, Map<String, String> queryParameters, Encoding encoding, String basePath, String protocol, String hosting, int hostPort}) Future<RestResponse>
put(String apiEndPoint, {Map<String, String> headers, Map<String, dynamic> body, Map<String, String> queryParameters, Encoding encoding, String basePath, String protocol, String hosting, int hostPort}) Future<RestResponse>
toString() String
A string representation of this object.
inherited
uri(String apiEndPoint, {Map<String, String> queryParameters, String basePath, String protocol, String host, int port}) Uri

Operators

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

Static Properties

headersDefault Map<String, String>
read / write