Skip to main content

Module multipart

Module multipart 

Source
Expand description

multipart/mixed streaming responses — the server counterpart to toolkit_contract::runtime::multipart.

Sits beside super::sse as the second wire framing for a long-lived streaming endpoint: one JSON item per body part, for server-to-server consumers, where SSE serves browser-direct EventSource-style ones.

This is streaming response framing only. multipart/form-data requests, mixed per-part content types and Content-Disposition are all out of scope, and the boundary= parameter is generated here rather than declared by the author.

Structs§

BoundaryError
A caller-supplied boundary was rejected by MultipartJsonStream::with_boundary.
MultipartJsonStream
A multipart/mixed streaming response, one JSON part per item.