Function isContent [src]

Returns true if the parser is in a content state (ie. not waiting for more headers).

Prototype

pub fn isContent(self: State) bool

Parameters

self: State

Source

pub fn isContent(self: State) bool { return switch (self) { .invalid, .start, .seen_n, .seen_r, .seen_rn, .seen_rnr => false, .finished, .chunk_head_size, .chunk_head_ext, .chunk_head_r, .chunk_data, .chunk_data_suffix, .chunk_data_suffix_r => true, }; }