unionstd.http.Server.Response.TransferEncoding[src]

Fields

none

End of connection signals the end of the stream.

content_length: u64

As a debugging utility, counts down to zero as bytes are written.

chunked

Each chunk is wrapped in a header and trailer.

Source Code

Source code
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,
}