fn read(r: *HeadersParser, conn: anytype, buffer: []u8, skip: bool) !usize

Reads the body of the message into buffer. Returns the number of bytes placed in the buffer.

If skip is true, the buffer will be unused and the body will be skipped.

See std.http.Client.BufferedConnection for an example of conn`.

Parameters

conn: anytype,
buffer: []u8,
skip: bool,