package sonet

  1. Overview
  2. Docs
type url = string
type payload = string
type request =
  1. | Payload of url list * payload option
  2. | FileRecv of url list * Unix.file_descr
  3. | FileSend of url list * Unix.file_descr
type error =
  1. | Unix of Unix.error
  2. | Http of int * string
  3. | Other of string
val string_of_error : error -> string
exception Invalid_request of request
exception Invalid_url of url * string
val is_supported_url : url -> bool
type result = {
  1. meth : Http.Request_header.meth;
  2. url : url;
  3. response : Http.Response.t option;
  4. error : (url * error) list option;
}
val request : (meth * request) list -> result list
OCaml

Innovation. Community. Security.