HttpService class abstract
Abstract class that provides methods for handling HTTP requests.
- Implementers
Constructors
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
-
handleDeleteRequest(
String path, {Map< String, String> ? headers}) → Future<Response> -
Performs a DELETE request to the specified
path
with optionalheaders
. -
handleDeleteRequestWithoutToken(
String path) → Future< Response> -
Performs a DELETE request to the specified
path
without including any authentication token. -
handleGetRequest(
String path, {Map< String, String> ? headers}) → Future<Response> -
Performs a GET request to the specified
path
with optionalheaders
. -
handleGetRequestWithoutToken(
String path) → Future< Response> -
Performs a GET request to the specified
path
without including any authentication token. -
handlePostRequest(
String path, dynamic data, {Map< String, String> ? headers}) → Future<Response> -
Performs a POST request to the specified
path
with the givendata
, and optionalheaders
. -
handlePostRequestList(
String path, List? data, {Map< String, String> ? headers}) → Future<Response> -
Performs a POST request to the specified
path
with a list ofdata
items, and optionalheaders
. -
handlePostRequestWithoutToken(
String path, [Map< String, dynamic> ? data]) → Future<Response> -
Performs a POST request to the specified
path
without including any authentication token. Accepts an optionaldata
parameter. -
handlePutRequest(
String path, {Map< String, dynamic> ? data, Map<String, String> ? headers}) → Future<Response> -
Performs a PUT request to the specified
path
with optionaldata
andheaders
. -
handlePutRequestWithoutToken(
String path, [Map< String, dynamic> ? data]) → Future<Response> -
Performs a PUT request to the specified
path
without including any authentication token. Accepts an optionaldata
parameter. -
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