HttpService class abstract

Abstract class that provides methods for handling HTTP requests.

Implementers

Constructors

HttpService.new()

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 optional headers.
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 optional headers.
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 given data, and optional headers.
handlePostRequestList(String path, List? data, {Map<String, String>? headers}) Future<Response>
Performs a POST request to the specified path with a list of data items, and optional headers.
handlePostRequestWithoutToken(String path, [Map<String, dynamic>? data]) Future<Response>
Performs a POST request to the specified path without including any authentication token. Accepts an optional data parameter.
handlePutRequest(String path, {Map<String, dynamic>? data, Map<String, String>? headers}) Future<Response>
Performs a PUT request to the specified path with optional data and headers.
handlePutRequestWithoutToken(String path, [Map<String, dynamic>? data]) Future<Response>
Performs a PUT request to the specified path without including any authentication token. Accepts an optional data 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