RequestAPI class
Constructors
-
RequestAPI({required String authority, 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>? queryParameters, bool debug = false, void logFunction(String)?, Client? client, })
-
factory
Methods
-
delete(String path, {ProcessResponseMethod? processResponseMethod, Map<String, String>? queryParameters, String? authority, Client? client, bool queryParametersReplace = false, bool? useSSL})
→ Future<Response>
-
-
get(String path, {ProcessResponseMethod? processResponseMethod, Map<String, String>? queryParameters, String? authority, Client? client, bool queryParametersReplace = false, bool? useSSL})
→ Future<Response>
-
-
head(String path, {ProcessResponseMethod? processResponseMethod, Map<String, String>? queryParameters, String? authority, Client? client, 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, String? authority, Client? client, bool queryParametersReplace = false, bool? useJsonEncode, bool? useSSL})
→ Future<Response>
-
-
post(String path, {dynamic body, ProcessResponseMethod? processResponseMethod, Map<String, String>? queryParameters, String? authority, Client? client, bool queryParametersReplace = false, bool? useJsonEncode, bool? useSSL})
→ Future<Response>
-
-
put(String path, {dynamic body, ProcessResponseMethod? processResponseMethod, Map<String, String>? queryParameters, String? authority, Client? client, bool queryParametersReplace = false, bool? useJsonEncode, bool? useSSL})
→ Future<Response>
-
-
sendFile(HttpMethod method, String path, String field, String filePath, {ProcessStreamedResponseMethod? processStreamedResponseMethod, Map<String, String>? queryParameters, String? authority, bool queryParametersReplace = false, bool? useSSL})
→ Future<String>
-
-
sendFiles(HttpMethod method, String path, List<String> fields, List<String> filePaths, {ProcessStreamedResponseMethod? processStreamedResponseMethod, Map<String, String>? queryParameters, String? authority, bool queryParametersReplace = false, bool? useSSL})
→ Future<String>
-
-
toString()
→ String
-
A string representation of this object.
inherited