package http

  1. Overview
  2. Docs

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.

type error =
  1. | Partial
  2. | Msg of string
val parse_request : ?pos:int -> ?len:int -> string -> (Request.t * int, error) result
val parse_chunk_length : ?pos:int -> ?len:int -> string -> (int64 * int, error) result
OCaml

Innovation. Community. Security.