RequestAPI class

Constructors

RequestAPI({required String authority, required Map<String, String> headers, required Map<String, String> queryParameters, required ProcessResponseMethod processResponseMethod, required ProcessStreamedResponseMethod processStreamedResponseMethod, bool useJsonEncode = true, bool useSSL = true, bool debug = false, void logFunction(String)?, Client? client})
const
RequestAPI.factory({required String authority, String? bearerToken, bool useSSL = true, Map<String, String>? headers, Map<String, String>? queryParameters, bool debug = false, void logFunction(String)?, Client? client, bool replaceDefaultHeaders = false})
factory

Properties

authority String
final
client → Client?
final
debug bool
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
final
logFunction → (void Function(String)?)
final
processResponseMethod ProcessResponseMethod
final
processStreamedResponseMethod ProcessStreamedResponseMethod
final
queryParameters Map<String, String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useJsonEncode bool
final
useSSL bool
final

Methods

delete(String path, {ProcessResponseMethod? processResponseMethod, Map<String, String>? queryParameters, Map<String, String>? headers, String? authority, Client? client, bool headersReplace = false, bool queryParametersReplace = false, bool? useSSL}) Future<Response>
get(String path, {ProcessResponseMethod? processResponseMethod, Map<String, String>? queryParameters, Map<String, String>? headers, String? authority, Client? client, bool headersReplace = false, bool queryParametersReplace = false, bool? useSSL}) Future<Response>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(String path, {dynamic body, ProcessResponseMethod? processResponseMethod, Map<String, String>? queryParameters, Map<String, String>? headers, String? authority, Client? client, bool headersReplace = false, bool queryParametersReplace = false, bool? useJsonEncode, bool? useSSL}) Future<Response>
post(String path, {dynamic body, ProcessResponseMethod? processResponseMethod, Map<String, String>? queryParameters, Map<String, String>? headers, String? authority, Client? client, bool headersReplace = false, bool queryParametersReplace = false, bool? useJsonEncode, bool? useSSL}) Future<Response>
put(String path, {dynamic body, ProcessResponseMethod? processResponseMethod, Map<String, String>? queryParameters, Map<String, String>? headers, String? authority, Client? client, bool headersReplace = false, bool queryParametersReplace = false, bool? useJsonEncode, bool? useSSL}) Future<Response>
sendFile(HttpMethod method, String path, String field, String filePath, {ProcessStreamedResponseMethod? processStreamedResponseMethod, Map<String, String>? queryParameters, Map<String, String>? headers, String? authority, bool headersReplace = false, bool queryParametersReplace = false, bool? useSSL}) Future<String>
sendFiles(HttpMethod method, String path, List<String> fields, List<String> filePaths, {ProcessStreamedResponseMethod? processStreamedResponseMethod, Map<String, String>? queryParameters, Map<String, String>? headers, String? authority, bool headersReplace = false, bool queryParametersReplace = false, bool? useSSL}) Future<String>
toString() String
A string representation of this object.
inherited

Operators

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