Module Fmlib_browser.Http

Data of an Http Request.

type error = [
  1. | `Status of int
    (*
    • 0: no internet, server not found, timeout, ...
    • 401: bad request
    • 403: forbidden
    • 404: page not found
    • ...
    *)
  2. | `No_json
    (*

    Resource is not a valid json file

    *)
  3. | `Decode
    (*

    Resource is a valid json file, but the decoder could not decode the corresponding javascript object.

    *)
]
module Body : sig ... end

Body of an Http Request

module Expect : sig ... end

Expected Response of an Http Request