FetchMutableRequest

Types

Link copied to clipboard

Properties

Link copied to clipboard
abstract val body: ReadableStream?

Specifies, if any, a ReadableStream which holds the body of a FetchRequest. Body data may only be provided when the method for the request allows a body, such as POST, PUT, and so forth.

Link copied to clipboard
abstract val bodyUsed: Boolean

If the body for this request has already been consumed, this property must return true; if false, the body is still buffered and may be queried.

Link copied to clipboard
open val cache: String

Specifies the cache mode for the request. The default value is default, which indicates that the browser or executing engine should use sensible and safe defaults.

Link copied to clipboard

Specifies whether user credentials should be sent with the request. The default value is omit, which indicates that user credentials (or any other credentials) should be omitted. Server-side, there are no "default" rules for authorization material present on a request; what you send is what is sent, so this property does nothing.

Link copied to clipboard
abstract val destination: String

Describes the destination or use profile for the fetched data in a given fetch request/response cycle.

Link copied to clipboard
abstract override var headers: FetchHeaders

TBD.

Link copied to clipboard
open val integrity: String?

Provides a calculated integrity hash value which is expected to be found when calculating a similar value for any data returned from a Request cycle. The integrity value is expected to be well-formed, with a prefix that describes the algorithm used to calculate the hash.

Link copied to clipboard
abstract override var method: String

TBD.

Link copied to clipboard
open val mode: String

Specifies the operating mode for this request, which is derived from the source of the request and applicable security context. This property is typically not used server-side.

Link copied to clipboard
open val priority: String

Specifies the operating priority for this request, where applicable/supported. This property gives the developer a chance to express the relative priority of a given request, or to understand the estimated priority for an incoming request.

Link copied to clipboard
open val redirect: String

Describes how redirects are to be handled in response to this request. Only makes sense when expressed on an outbound fetch request instance.

Link copied to clipboard
open val referrer: String?

Indicates the referrer value for an outgoing request in a browser. Typically not used server-side.

Link copied to clipboard

Indicates the referrer-policy which is active for this request. Typically not used server-side.

Link copied to clipboard
abstract override var url: String

TBD.