LokotroHttpClient class

Enhanced HTTP client for Lokotro Pay with modern error handling and logging

Properties

dio → Dio
Get Dio instance for advanced usage
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearAcceptLanguage() → void
Remove accept-language header
clearAppKey() → void
Remove app-key
clearAuthToken() → void
Remove authorization token (for backward compatibility)
delete<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, T parser(dynamic)?}) Future<LokotroHttpResponse<T>>
DELETE request with enhanced error handling
get<T>(String path, {Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, T parser(dynamic)?}) Future<LokotroHttpResponse<T>>
GET request with enhanced error handling
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, T parser(dynamic)?}) Future<LokotroHttpResponse<T>>
POST request with enhanced error handling
put<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, T parser(dynamic)?}) Future<LokotroHttpResponse<T>>
PUT request with enhanced error handling
setAcceptLanguage(String language) → void
Set accept-language header
setAppKey(String appKey) → void
Set app-key for Lokotro Gateway authentication
setAuthToken(String token) → void
Set authorization token (for backward compatibility)
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance LokotroHttpClient
Get singleton instance
no setter

Static Methods

reset() → void
Reset instance (for testing)