sendFile method
Future<String>
sendFile(
- HttpMethod method,
- String path,
- String field,
- String filePath, {
- ProcessStreamedResponseMethod? processStreamedResponseMethod,
- Map<String, String>? queryParameters,
- String? authority,
- bool queryParametersReplace = false,
- bool? useSSL,
})
Implementation
Future<String> 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,
}) async {
return sendFiles(
method,
path,
[field],
[filePath],
processStreamedResponseMethod: processStreamedResponseMethod,
queryParameters: queryParameters,
headers: headers,
authority: authority,
headersReplace: headersReplace,
queryParametersReplace: queryParametersReplace,
useSSL: useSSL,
);
}