Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

RespondStreamingOptions

Public Struct
std.http.Server.Request.RespondStreamingOptions
pub const RespondStreamingOptions = struct

Fields

content_length: ?u64 = null

If provided, the response will use the content-length header; otherwise it will use transfer-encoding: chunked.

respond_options: RespondOptions = .{}

Options that are shared with the respond method.

File

http/Server.zig:389
389
390
391
392
393
394
395
    pub const RespondStreamingOptions = struct {
        /// If provided, the response will use the content-length header;
        /// otherwise it will use transfer-encoding: chunked.
        content_length: ?u64 = null,
        /// Options that are shared with the `respond` method.
        respond_options: RespondOptions = .{},
    }