package http

  1. Overview
  2. Docs

Module Private.ParserSource

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.

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

Innovation. Community. Security.