package js_of_ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type readyState =
  1. | UNSENT
  2. | OPENED
  3. | HEADERS_RECEIVED
  4. | LOADING
  5. | DONE
type !_ response =
  1. | ArrayBuffer : Typed_array.arrayBuffer Js.t Js.Opt.t response
  2. | Blob : File.blob Js.t Js.Opt.t response
  3. | Document : Dom.element Dom.document Js.t Js.Opt.t response
  4. | JSON : 'a Js.Opt.t response
  5. | Text : Js.js_string Js.t response
  6. | Default : string response
class type xmlHttpRequest = object ... end
class type xmlHttpRequestUpload = object ... end
val create : unit -> xmlHttpRequest Js.t
module Event : sig ... end
type !'response generic_http_frame = {
  1. url : string;
  2. code : int;
  3. headers : string -> string option;
  4. content : 'response;
  5. content_xml : unit -> Dom.element Dom.document Js.t option;
}
type http_frame = string generic_http_frame
exception Wrong_headers of int * (string -> string option)
val perform_raw : ?headers:(string * string) list -> ?content_type:string -> ?post_args:(string * Form.form_elt) list -> ?get_args:(string * string) list -> ?form_arg:Form.form_contents -> ?check_headers:(int -> (string -> string option) -> bool) -> ?progress:(int -> int -> unit) -> ?upload_progress:(int -> int -> unit) -> ?override_mime_type:string -> ?override_method: [< `DELETE | `GET | `HEAD | `OPTIONS | `PATCH | `POST | `PUT ] -> ?with_credentials:bool -> response_type:'a response -> string -> 'a generic_http_frame Lwt.t
val perform_raw_url : ?headers:(string * string) list -> ?content_type:string -> ?post_args:(string * Form.form_elt) list -> ?get_args:(string * string) list -> ?form_arg:Form.form_contents -> ?check_headers:(int -> (string -> string option) -> bool) -> ?progress:(int -> int -> unit) -> ?upload_progress:(int -> int -> unit) -> ?override_mime_type:string -> ?override_method: [< `DELETE | `GET | `HEAD | `OPTIONS | `PATCH | `POST | `PUT ] -> ?with_credentials:bool -> string -> http_frame Lwt.t
val perform : ?headers:(string * string) list -> ?content_type:string -> ?post_args:(string * Form.form_elt) list -> ?get_args:(string * string) list -> ?form_arg:Form.form_contents -> ?check_headers:(int -> (string -> string option) -> bool) -> ?progress:(int -> int -> unit) -> ?upload_progress:(int -> int -> unit) -> ?override_mime_type:string -> ?override_method: [< `DELETE | `GET | `HEAD | `OPTIONS | `PATCH | `POST | `PUT ] -> ?with_credentials:bool -> Url.url -> http_frame Lwt.t
val get : string -> http_frame Lwt.t
OCaml

Innovation. Community. Security.