TwitchHttpClient class abstract

This abstract class contains the definition of the method used to create requests with the client.

It could be overridden as you want for testing purpose or use the implementation "TwitchHttpClientImpl" inside this package

Implementers

Constructors

TwitchHttpClient({required EnvironmentBundle environmentBundle})

Properties

environmentBundle EnvironmentBundle
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

makeGet<T extends BaseHttpResponse>(String path, {required T convertBodyFunc(Response response), Map<String, String>? headers, Map<String, String?>? queryParameters, String? bearerToken, String? clientId}) Future<HttpResult<T>>
The purpose of this method is to make an HTTP /GET request.
makePost<T extends BaseHttpResponse>(String path, {required T convertBodyFunc(Response response), Map<String, String>? headers, Map<String, String?>? queryParameters, Map<String, dynamic>? body, String? bearerToken, String? clientId}) Future<HttpResult<T>>
The purpose of this method is to make an HTTP /POST request.
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