package ocsigenserver

  1. Overview
  2. Docs
type http_method =
  1. | GET
  2. | POST
  3. | HEAD
  4. | PUT
  5. | DELETE
  6. | TRACE
  7. | OPTIONS
  8. | CONNECT
  9. | PATCH
type http_mode =
  1. | Query of http_method * string
  2. | Answer of int
  3. | Nofirstline
type proto =
  1. | HTTP10
  2. | HTTP11
type http_header = {
  1. mode : http_mode;
  2. proto : proto;
  3. headers : Http_headers.t;
}
val get_firstline : http_header -> http_mode
val get_headers : http_header -> Http_headers.t
val get_headers_value : http_header -> Http_headers.name -> string
val get_headers_values : http_header -> Http_headers.name -> string list
val get_proto : http_header -> proto
val add_headers : http_header -> Http_headers.name -> string -> http_header
OCaml

Innovation. Community. Security.