package ocaml-vdom

  1. Overview
  2. Docs

Module Js_browser.XHRSource

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

Innovation. Community. Security.