HttpClientRequester class abstract

Abstract HttpClient requester. This should implement the actual request process.

Constructors

HttpClientRequester()

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

buildPOSTFormData(Map<String, String?> data, [Map<String, String>? requestHeaders]) String
buildQueryString(Map<String, String?>? data) String
Helper to build a Query String.
buildRequestBody(HttpClient client, HttpRequestBody httpBody, Authorization? authorization) HttpRequestBody
Helper to build the request body.
buildRequestHeaders(HttpClient client, HttpMethod method, String url, {Map<String, String>? headers, Authorization? authorization, String? contentType, String? accept}) Map<String, String>
Helper to build the request headers.
buildRequestURL(HttpClient client, String url, {Authorization? authorization, Map<String, String?>? queryParameters, bool noQueryString = false}) String
Helper to build the request URL.
close() → void
Closes the HttpClientRequester and internal instances.
doHttpRequest(HttpClient client, HttpRequest request, ProgressListener? progressListener, bool log) Future<HttpResponse>
Implements teh actual HTTP request for imported platform.
log(Object? o) → void
logError(Object? message, [Object? error, StackTrace? stackTrace]) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request(HttpClient client, HttpMethod method, String url, {Map<String, String>? headers, Authorization? authorization, Map<String, String?>? queryParameters, bool noQueryString = false, Object? body, String? contentType, String? accept, String? responseType, ProgressListener? progressListener}) Future<HttpResponse>
requestDELETE(HttpClient client, String url, {Map<String, String>? headers, Authorization? authorization, Map<String, String?>? queryParameters, bool noQueryString = false, Object? body, String? contentType, String? accept, String? responseType, ProgressListener? progressListener}) Future<HttpResponse>
requestGET(HttpClient client, String url, {Map<String, String>? headers, Authorization? authorization, Map<String, String?>? queryParameters, bool noQueryString = false, String? accept, String? responseType, ProgressListener? progressListener}) Future<HttpResponse>
requestHEAD(HttpClient client, String url, {Map<String, String>? headers, Authorization? authorization, Map<String, String?>? queryParameters, bool noQueryString = false, ProgressListener? progressListener}) Future<HttpResponse>
requestOPTIONS(HttpClient client, String url, {Map<String, String>? headers, Authorization? authorization, Map<String, String?>? queryParameters, bool noQueryString = false, ProgressListener? progressListener}) Future<HttpResponse>
requestPATCH(HttpClient client, String url, {Map<String, String>? headers, Authorization? authorization, Map<String, String?>? queryParameters, bool noQueryString = false, Object? body, String? contentType, String? accept, String? responseType, ProgressListener? progressListener}) Future<HttpResponse>
requestPOST(HttpClient client, String url, {Map<String, String>? headers, Authorization? authorization, Map<String, String?>? queryParameters, bool noQueryString = false, Object? body, String? contentType, String? accept, String? responseType, ProgressListener? progressListener}) Future<HttpResponse>
requestPUT(HttpClient client, String url, {Map<String, String>? headers, Authorization? authorization, Map<String, String?>? queryParameters, bool noQueryString = false, Object? body, String? contentType, String? accept, String? responseType, ProgressListener? progressListener}) Future<HttpResponse>
setupUserAgent(String? userAgent) bool
stderr(Object? o) → void
stdout(Object? o) → void
submitHttpRequest(HttpClient client, HttpRequest request, ProgressListener? progressListener, bool log) Future<HttpResponse>
toString() String
A string representation of this object.
inherited

Operators

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