sendFile method

Future<String> sendFile(
  1. HttpMethod method,
  2. String path,
  3. String field,
  4. String filePath, {
  5. ProcessStreamedResponseMethod? processStreamedResponseMethod,
  6. Map<String, String>? queryParameters,
  7. Map<String, String>? headers,
  8. String? authority,
  9. bool headersReplace = false,
  10. bool queryParametersReplace = false,
  11. 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,
  );
}