Skip to main content

Module blob

Module blob 

Source
Expand description

Blob upload/download operations and supporting types (RFC 8620 §6.1, §6.2)

Structs§

BlobDownloadStream
A blob body being downloaded, returned by JmapClient::download_blob_stream.
BlobUploadResponse
Response body returned by a successful blob upload (RFC 8620 §6.1).
DownloadBlobParams
Parameters for JmapClient::download_blob.
DownloadBlobSessionParams
Parameters for JmapClient::download_blob_session (bd:JMAP-6r7c.64).
UploadBlobParams
Parameters for JmapClient::upload_blob.
UploadBlobSessionParams
Parameters for JmapClient::upload_blob_session (bd:JMAP-6r7c.64).
UploadBlobStreamParams
Parameters for JmapClient::upload_blob_stream.

Functions§

expand_url_template
Expand a RFC 6570 Level-1 URI template by substituting variables.
upload_body_from_reader
Wrap a tokio::io::AsyncRead (a file, a pipe, a decompressor) as a BlobUploadBody. The reader is read in chunks as the request body is sent; it is never buffered whole.

Type Aliases§

BlobUploadBody
Request body for JmapClient::upload_blob_stream: a stream of byte chunks sent to the server in order.