MayRest class abstract
Basic Rest Client Authors - Dan M
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
-
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
Static Properties
-
defaultHeaders
→ Map<
String, String> -
Gets the default headers applied to every request
no setter
Static Methods
-
delete(
String url, {Object? body, bool quiet = false, String? token, bool noToken = false, Map< String, String> ? headers}) → Future<Response> - Makes a DELETE request to url
-
disableColors(
) → void - Allows you to disable colors for this logger
-
get(
String url, {bool quiet = false, String? token, bool noToken = false, Map< String, String> ? headers}) → Future<Response> - Makes a GET request to url
-
patch(
String url, {Object? body, bool quiet = false, String? token, bool noToken = false, Map< String, String> ? headers}) → Future<Response> - Makes a PATCH request to url
-
post(
String url, {Object? body, bool quiet = false, String? token, bool noToken = false, Map< String, String> ? headers}) → Future<Response> - Makes a POST request to url
-
put(
String url, {Object? body, bool quiet = false, String? token, bool noToken = false, Map< String, String> ? headers}) → Future<Response> - Makes a PUT request to url
-
setDefaultHeaders(
Map< String, String> headers) → void - Allows you to override the default headers applied to every request