package server-reason-react

  1. Overview
  2. Docs
Rendering React components on the server natively

Install

Dune Dependency

Authors

Maintainers

Sources

server-reason-react-0.3.1.tbz
sha256=b97fbe6a7c3e5e1a7775e0f6498f257acaaa7e272177a9a3e0e50b7a49408d7c
sha512=b27a94618c367c80efef83a41c2a59c9cc7848fd753049ed40fa1f2cface1ef34cf3a995835bf08e2eb59c3186911f429b4706ed07dcb9724df6af5eb012a31d

doc/server-reason-react.melange-fetch/Fetch/index.html

Module FetchSource

Sourcetype body
Sourcetype bodyInit
Sourcetype headers = string Js.Dict.t
Sourcetype headersInit
Sourcetype response
Sourcetype request
Sourcetype requestInit
Sourcetype signal = {
  1. aborted : bool;
  2. onabort : (unit -> unit) option;
  3. reason : string option;
}
Sourcetype abortController = {
  1. signal : signal;
  2. abort : unit -> unit;
}
Sourcetype arrayBuffer
Sourcetype bufferSource
Sourcetype formData
Sourcetype readableStream
Sourcetype urlSearchParams
Sourcetype blob
Sourcetype file
Sourcemodule AbortController : sig ... end
Sourcetype requestMethod =
  1. | Get
  2. | Head
  3. | Post
  4. | Put
  5. | Delete
  6. | Connect
  7. | Options
  8. | Trace
  9. | Patch
  10. | Other of string
Sourceval encodeRequestMethod : requestMethod -> string
Sourceval decodeRequestMethod : string -> requestMethod
Sourcetype referrerPolicy =
  1. | None
  2. | NoReferrer
  3. | NoReferrerWhenDowngrade
  4. | SameOrigin
  5. | Origin
  6. | StrictOrigin
  7. | OriginWhenCrossOrigin
  8. | StrictOriginWhenCrossOrigin
  9. | UnsafeUrl
Sourceval encodeReferrerPolicy : referrerPolicy -> string
Sourceval decodeReferrerPolicy : string -> referrerPolicy
Sourcetype requestType =
  1. | None
  2. | Audio
  3. | Font
  4. | Image
  5. | Script
  6. | Style
  7. | Track
  8. | Video
Sourceval decodeRequestType : string -> requestType
Sourcetype requestDestination =
  1. | None
  2. | Document
  3. | Embed
  4. | Font
  5. | Image
  6. | Manifest
  7. | Media
  8. | Object
  9. | Report
  10. | Script
  11. | ServiceWorker
  12. | SharedWorker
  13. | Style
  14. | Worker
  15. | Xslt
Sourceval decodeRequestDestination : string -> requestDestination
Sourcetype requestMode =
  1. | Navigate
  2. | SameOrigin
  3. | NoCORS
  4. | CORS
Sourceval encodeRequestMode : requestMode -> string
Sourceval decodeRequestMode : string -> requestMode
Sourcetype requestCredentials =
  1. | Omit
  2. | SameOrigin
  3. | Include
Sourceval encodeRequestCredentials : requestCredentials -> string
Sourceval decodeRequestCredentials : string -> requestCredentials
Sourcetype requestCache =
  1. | Default
  2. | NoStore
  3. | Reload
  4. | NoCache
  5. | ForceCache
  6. | OnlyIfCached
Sourceval encodeRequestCache : requestCache -> string
Sourceval decodeRequestCache : string -> requestCache
Sourcetype requestRedirect =
  1. | Follow
  2. | Error
  3. | Manual
Sourceval encodeRequestRedirect : requestRedirect -> string
Sourceval decodeRequestRedirect : string -> requestRedirect
Sourcemodule HeadersInit : sig ... end
Sourcemodule Headers : sig ... end
Sourcemodule BodyInit : sig ... end
Sourcemodule Body : sig ... end
Sourcemodule RequestInit : sig ... end
Sourcemodule Request : sig ... end
Sourcemodule Response : sig ... end
Sourcemodule FormData : sig ... end
Sourceval fetch : string -> response Js.Promise.t
Sourceval fetchWithInit : string -> requestInit -> response Js.Promise.t
Sourceval fetchWithRequest : request -> response Js.Promise.t
Sourceval fetchWithRequestInit : request -> requestInit -> response Js.Promise.t
OCaml

Innovation. Community. Security.