type error =
  1. | Partial
  2. | Fail of Core.Error.t
type chunk_kind =
  1. | Start_chunk
  2. | Continue_chunk of int
type chunk_parser_result =
  1. | Chunk_complete of Core.Bigstring.t Core_unix.IOVec.t
  2. | Done
  3. | Partial_chunk of Core.Bigstring.t Core_unix.IOVec.t * int
val parse_request : ?pos:int -> ?len:int -> Core.Bigstring.t -> (Request.t * int, error) Core.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.

val parse_chunk_length : ?pos:int -> ?len:int -> Core.Bigstring.t -> (int * int, error) Core.result
val parse_chunk : ?pos:int -> ?len:int -> Core.Bigstring.t -> chunk_kind -> (chunk_parser_result * int, error) Core.result
module Private : sig ... end