Companion

Types

Link copied to clipboard
sealed interface DeleteOptions
Link copied to clipboard
sealed interface FetchArrayBufferOptions
Link copied to clipboard
sealed interface FetchBlobOptions
Link copied to clipboard
sealed interface FetchImageOptions
Link copied to clipboard
sealed interface FetchJsonOptions
Link copied to clipboard
sealed interface FetchJsonpOptions
Link copied to clipboard
sealed interface FetchOptions
Link copied to clipboard
sealed interface FetchTextOptions
Link copied to clipboard
sealed interface FetchXMLOptions
Link copied to clipboard
sealed interface HeadOptions
Link copied to clipboard
sealed interface OptionsOptions
Link copied to clipboard
sealed interface PatchOptions
Link copied to clipboard
sealed interface PostOptions
Link copied to clipboard
sealed interface PutOptions

Properties

Link copied to clipboard

A resource instance initialized to the current browser location

Link copied to clipboard

Returns true if blobs are supported.

Functions

Link copied to clipboard

Creates a Resource from a URL and calls delete() on it.

Link copied to clipboard
Link copied to clipboard
suspend fun fetch(options: Resource.Companion.FetchOptions): Any?

Creates a Resource from a URL and calls fetch() on it.

Link copied to clipboard

Creates a Resource and calls fetchArrayBuffer() on it.

Link copied to clipboard
Link copied to clipboard

Creates a Resource and calls fetchBlob() on it.

Link copied to clipboard

Creates a Resource and calls fetchImage() on it.

Link copied to clipboard

Creates a Resource and calls fetchJson() on it.

Link copied to clipboard

Creates a Resource from a URL and calls fetchJsonp() on it.

Link copied to clipboard

Creates a Resource and calls fetchText() on it.

Link copied to clipboard

Creates a Resource and calls fetchXML() on it.

Link copied to clipboard
suspend fun head(options: Resource.Companion.HeadOptions): Any?

Creates a Resource from a URL and calls head() on it.

Link copied to clipboard
Link copied to clipboard

Creates a Resource from a URL and calls options() on it.

Link copied to clipboard
Link copied to clipboard
suspend fun patch(options: Resource.Companion.PatchOptions): Any?

Creates a Resource from a URL and calls patch() on it.

Link copied to clipboard
Link copied to clipboard
suspend fun post(options: Resource.Companion.PostOptions): Any?

Creates a Resource from a URL and calls post() on it.

Link copied to clipboard
Link copied to clipboard
suspend fun put(options: Resource.Companion.PutOptions): Any?

Creates a Resource from a URL and calls put() on it.

Link copied to clipboard