Connection class
This is the main object
Constructors
-
Connection({required String authority, Map<
String, String> ? defaultHeaders}) - Initialize the connection
Properties
-
The domain authority
latefinal
-
defaultHeaders
↔ Map<
String, String> ? -
Default headers
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → void - Close the connection
-
get(
{required String endpoint, Map< String, dynamic> ? params, Map<String, String> ? headers}) → Future<Response> - HTTPS GET with optional params
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
{required String endpoint, Map< String, dynamic> ? payload, Map<String, String> ? headers}) → Future<Response> - HTTPS POST with optional params
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited