NetworkService class
HTTP client wrapper for Frappe API calls with proper error handling, request/response logging, and retry logic.
Constructors
- NetworkService({required OAuthConfig config, Client? client})
Properties
- config → OAuthConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete(
String endpoint, {Map< String, String> ? headers}) → Future<Map< String, dynamic> > - Makes a DELETE request to the specified endpoint
-
dispose(
) → void - Disposes of the HTTP client
-
get(
String endpoint, {Map< String, String> ? headers, Map<String, String> ? queryParams}) → Future<Map< String, dynamic> > - Makes a GET request to the specified endpoint
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
String endpoint, {Map< String, String> ? headers, Map<String, dynamic> ? body, Map<String, String> ? formData}) → Future<Map< String, dynamic> > - Makes a POST request to the specified endpoint
-
put(
String endpoint, {Map< String, String> ? headers, Map<String, dynamic> ? body}) → Future<Map< String, dynamic> > - Makes a PUT request to the specified endpoint
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited