HttpResponseHandler class

Unified HTTP response handler for all providers

This utility class provides consistent response handling across all AI providers, including proper error handling and response parsing.

Constructors

HttpResponseHandler.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

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

Static Methods

getJson(Dio dio, String endpoint, {String? providerName, Logger? logger, Map<String, dynamic>? queryParameters, Options? options}) Future<Map<String, dynamic>>
Create a standardized getJson method for providers
parseJsonResponse(dynamic responseData, {String? providerName}) Map<String, dynamic>
Parse HTTP response data to Map<String, dynamic>
postJson(Dio dio, String endpoint, Map<String, dynamic> data, {String? providerName, Logger? logger, Map<String, dynamic>? queryParameters, Options? options}) Future<Map<String, dynamic>>
Create a standardized postJson method for providers