Brr_io.Fetch
Fetching resources.
See the Fetch API.
module Body : sig ... end
Body specification and interface.
module Headers : sig ... end
Request and response headers.
module Request : sig ... end
Resource requests.
module Response : sig ... end
Request responses.
module Cache : sig ... end
Fetch caches.
module Ev : sig ... end
Fetch events.
val url : ?init:Request.init -> Jstr.t -> Response.t Fut.or_error
url ~init u
fetches URL u
with the init
request object.
val request : Request.t -> Response.t Fut.or_error
request r
fetches request r
.
val caches : unit -> Cache.Storage.t
caches ()
is the global caches
object.