Module H1_parser
type bigstring= (char, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout) Stdlib.Bigarray.Array1.ttype error=|Msg of string|Partial
val parse_headers : ?pos:int -> ?len:int -> bigstring -> (Cohttp.Header.t * int, error) Stdlib.resultval parse_request : ?pos:int -> ?len:int -> bigstring -> (Cohttp.Request.t * int, error) Stdlib.resultAttempts 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.