Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type bigstring =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
val parse_headers :
?pos:int ->
?len:int ->
bigstring ->
(Cohttp.Header.t * int, error) result
val parse_request :
?pos:int ->
?len:int ->
bigstring ->
(Cohttp.Request.t * int, error) result
Attempts to parse a buffer into a HTTP request. If successful, it returns the parsed request and an offset value that indicates the starting point of unconsumed content left in the buffer.