Skip to main content

multipart/byteranges

multipart

The MIME type for HTTP 206 Partial Content responses with multiple byte ranges. When a client requests multiple byte ranges (Range: bytes=0-100,200-300) and the server supports it, the response uses multipart/byteranges to separate each range part. Each part contains Content-Range and Content-Type headers.

Details

multipart/byteranges is returned by servers responding to a Range request with multiple ranges (RFC 9110 §14.4).

Single range: server returns Content-Range header with status 206, no multipart encoding. Multiple ranges: server returns multipart/byteranges body with each range as a separate part.

Common use: video scrubbing (seeking to position N in a video), partial download resumption, large file byte-range downloads.

Client request: Range: bytes=0-1023, 2048-4095

Server response: HTTP/1.1 206 Partial Content Content-Type: multipart/byteranges;boundary=ThisIsTheBoundary --ThisIsTheBoundary Content-Range: bytes 0-1023/65536 Content-Type: video/mp4 [1024 bytes of data] --ThisIsTheBoundary Content-Range: bytes 2048-4095/65536 [2048 bytes of data] --ThisIsTheBoundary--

Parameters

ParameterDescription
boundarySeparates each byte-range part in the response body.

Common use

HTTP range requests for video streaming, partial download resumption

See Also