fn findHeadersEnd(r: *HeadersParser, bytes: []const u8) u32

Returns the number of bytes consumed by headers. This is always less than or equal to bytes.len. You should check r.state.isContent() after this to check if the headers are done.

If the amount returned is less than bytes.len, you may assume that the parser is in a content state and the first byte of content is located at bytes[result].

Parameters

bytes: []const u8,