Fetch.BodyBody specification and interface.
val of_uri_params : Brr.Uri.Params.t -> initof_uri_params p is a body from URI params p.
val of_form_data : Form.Data.t -> initof_form_data d is a body from form data d.
val of_blob : Brr.Blob.t -> initof_blob b is a body from blob b.
val of_array_buffer : Brr.Tarray.Buffer.t -> initof_array_buffer b is a body from array buffer b.
The type for objects implementing the Body interface.
val array_buffer : t -> Brr.Tarray.Buffer.t Fut.or_errorarray_buffer b reads b into an array buffer.
val blob : t -> Brr.Blob.t Fut.or_errorblob b reads b as a blob.
val form_data : t -> Form.Data.t Fut.or_errorform_data b reads b as form data.
val json : t -> Brr.Json.t Fut.or_errorjson b reads b and parses it as JSON data.
val text : t -> Jstr.t Fut.or_errortext b reads b and UTF-8 decodes it to a string.