MCPcopy Create free account
hub / github.com/OctaneWeb/Octane / parse

Method parse

octane_http/src/http1x/raw_request.rs:48–100  ·  view source on GitHub ↗

Parse the head of an HTTP/1.x request out of `buf`, borrowing from it. `buf` is expected to contain at least the request-line and the headers terminated by `CRLFCRLF`; any bytes after that terminator are exposed through [`RawRequest1x::body_remainder`]. No bytes are copied.

(buf: &'a [u8])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

status_codesFunction · 0.45

Calls 3

eat_tillFunction · 0.85
eat_till_two_bytesFunction · 0.85
eat_till_four_bytesFunction · 0.85

Tested by

no test coverage detected