package sonet

  1. Overview
  2. Docs
type meth =
  1. | Get
  2. | Put
  3. | Head
  4. | Post
  5. | Trace
  6. | Delete
  7. | Connect
  8. | Options
  9. | Extension of string
val string_of_meth : meth -> string
type url =
  1. | Star
  2. | Uri of Uri.t
val string_of_url : url -> string
type state
val init_state : unit -> state
val num_bytes_parsed : state -> int
type t = {
  1. version : version;
  2. meth : meth;
  3. url : url;
  4. headers : header_fields;
}
type parse_result =
  1. | Result of t * int
  2. | Parse_incomplete of state
val parse : state -> string -> parse_result
val parse_substring : state -> string -> int -> int -> parse_result
type error
exception Http_error of error
val string_of_error : error -> string
val serialize : Buffer.t -> t -> unit
OCaml

Innovation. Community. Security.