Skip to main content

feed

Function feed 

Source
pub fn feed(sock_id: u64, _socket: &Value, bytes: &[u8]) -> Result<(), String>
Expand description

Feed freshly received socket bytes into the HTTP parser. No-op for a socket that is not an HTTP connection (plain net). Runs on the main thread.