HttpFileHandler class

HttpFileHandler handle the file upload using the http.Client

Inheritance

Constructors

HttpFileHandler({required Client client, required XFile file, required String path, String method = kFileUploadMethod, Map<String, String>? headers, String? body, String fileKey = kFileKey})
client used to upload the file
const

Properties

body String?
request body
finalinherited
file → XFile
file to handle
finalinherited
fileKey String
request key for file
finalinherited
fileParser → ChunkParser<Response>
callback to validate chunk upload
finalinherited
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
request headers
finalinherited
method String
request method, default to POST
finalinherited
path String
request path
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
upload({ProgressCallback? onProgress}) Future<void>
Method for uploading the entire file.

Operators

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