TwitchHttpClientImpl class

Implementation of the TwitchHttpClient for making HTTP request via the http package.

Inheritance

Constructors

TwitchHttpClientImpl({required EnvironmentBundle environmentBundle})

Properties

environmentBundle EnvironmentBundle
finalinherited
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), 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.
override
makePost<T extends BaseHttpResponse>(String path, {required T convertBodyFunc(Response p1), 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.
override
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

Constants

clientIdAuthorization → const String
headerAuthorization → const String