put method

  1. @override
Future<void> put(
  1. String key,
  2. List<int> bytes, {
  3. String? contentType,
})
override

Implementation

@override
Future<void> put(String key, List<int> bytes, {String? contentType}) async {
  final DVHttpResponse response = await _send(
    method: 'PUT',
    resourcePath: '/$container/$key',
    body: Uint8List.fromList(bytes),
    headers: <String, String>{
      'x-ms-blob-type': 'BlockBlob',
      if (contentType != null) 'content-type': contentType,
    },
  );
  _ensure(response, 'put', key);
}