Function peek [src]
Returns the current slice of buffered data.
Prototype
pub fn peek(conn: *Connection) []const u8
Parameters
conn: *Connection
Source
pub fn peek(conn: *Connection) []const u8 {
return conn.read_buf[conn.read_start..conn.read_end];
}