You can search for identifiers within the package.
in-package search v0.2.0
server-reason-react.fetch
Fetch
type body
type bodyInit
type headers = string Js.Dict.t
type headersInit
type response
type request
type requestInit
type signal = {
aborted : bool;
onabort : (unit -> unit) option;
reason : string option;
}
type abortController = {
signal : signal;
abort : unit -> unit;
type arrayBuffer
type bufferSource
type formData
type readableStream
type urlSearchParams
type blob
type file
module AbortController : sig ... end
type requestMethod =
| Get
| Head
| Post
| Put
| Delete
| Connect
| Options
| Trace
| Patch
| Other of string
val encodeRequestMethod : requestMethod -> string
val decodeRequestMethod : string -> requestMethod
type referrerPolicy =
| None
| NoReferrer
| NoReferrerWhenDowngrade
| SameOrigin
| Origin
| StrictOrigin
| OriginWhenCrossOrigin
| StrictOriginWhenCrossOrigin
| UnsafeUrl
val encodeReferrerPolicy : referrerPolicy -> string
val decodeReferrerPolicy : string -> referrerPolicy
type requestType =
| Audio
| Font
| Image
| Script
| Style
| Track
| Video
val decodeRequestType : string -> requestType
type requestDestination =
| Document
| Embed
| Manifest
| Media
| Object
| Report
| ServiceWorker
| SharedWorker
| Worker
| Xslt
val decodeRequestDestination : string -> requestDestination
type requestMode =
| Navigate
| NoCORS
| CORS
val encodeRequestMode : requestMode -> string
val decodeRequestMode : string -> requestMode
type requestCredentials =
| Omit
| Include
val encodeRequestCredentials : requestCredentials -> string
val decodeRequestCredentials : string -> requestCredentials
type requestCache =
| Default
| NoStore
| Reload
| NoCache
| ForceCache
| OnlyIfCached
val encodeRequestCache : requestCache -> string
val decodeRequestCache : string -> requestCache
type requestRedirect =
| Follow
| Error
| Manual
val encodeRequestRedirect : requestRedirect -> string
val decodeRequestRedirect : string -> requestRedirect
module HeadersInit : sig ... end
module Headers : sig ... end
module BodyInit : sig ... end
module Body : sig ... end
module RequestInit : sig ... end
module Request : sig ... end
module Response : sig ... end
module FormData : sig ... end
val fetch : string -> response Js.Promise.t
val fetchWithInit : string -> requestInit -> response Js.Promise.t
val fetchWithRequest : request -> response Js.Promise.t
val fetchWithRequestInit : request -> requestInit -> response Js.Promise.t