package ocaml-vdom

  1. Overview
  2. Docs
type t
val t_of_js : Ojs.t -> t
val t_to_js : t -> Ojs.t
val create : unit -> t
val open_ : t -> string -> string -> unit
val send : t -> Ojs.t -> unit
val set_request_header : t -> string -> string -> unit
val get_response_header : t -> string -> string option
val set_response_type : t -> string -> unit
val override_mime_type : t -> string -> unit
val set_with_credentials : t -> bool -> unit
type ready_state =
  1. | Unsent
  2. | Opened
  3. | Headers_received
  4. | Loading
  5. | Done
  6. | Other of int
val status : t -> int
val ready_state : t -> ready_state
val response_text : t -> string
val response : t -> Ojs.t
val set_onreadystatechange : t -> (unit -> unit) -> unit
OCaml

Innovation. Community. Security.