union TransferEncoding [src]
Fields
noneEnd of connection signals the end of the stream.
content_length: u64As a debugging utility, counts down to zero as bytes are written.
chunkedEach chunk is wrapped in a header and trailer.
Source
pub const TransferEncoding = union(enum) {
/// End of connection signals the end of the stream.
none,
/// As a debugging utility, counts down to zero as bytes are written.
content_length: u64,
/// Each chunk is wrapped in a header and trailer.
chunked,
}