put_Request method
BaseRequest
put_Request(})
Request to put a new file at path
with localData
as content.
See:
- put for a complete operation executing this request.
Implementation
http.BaseRequest put_Request(
Uint8List localData,
PathUri path, {
DateTime? lastModified,
DateTime? created,
}) {
final request = http.Request('PUT', _constructUri(path))..bodyBytes = localData;
_addUploadHeaders(
request,
lastModified: lastModified,
created: created,
contentLength: localData.length,
);
_addBaseHeaders(request);
return request;
}