BetterClient class

Constructors

BetterClient({@required String baseUrl, @required bool debug, Map<String, String> globalHeaders})

Properties

baseUrl String
read / write
dataOffset String
read / write
debug bool
read / write
globalHeaders Map<String, String>
read / write
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
successCodes List<int>
read / write

Methods

delete({String path, Function fromJson, bool debug, Function parseList, Map<String, String> headers}) Future
get({String path, Function fromJson, bool debug, Function parseList, Map<String, String> headers}) Future
loadResponse({Response response, Function fromJson, Function parseList, bool debug}) ApiResponse
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
patch({String path, Function fromJson, bool debug, dynamic body, Function parseList, Map<String, String> headers}) Future
post({String path, dynamic body, Function fromJson, bool debug, Function parseList, Map<String, String> headers}) Future
printWrapped(String text) → void
put({String path, Function fromJson, bool debug, dynamic body, Function parseList, Map<String, String> headers}) Future
toString() String
A string representation of this object.
inherited

Operators

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