PostOptions

sealed interface PostOptions(source)

Properties

Link copied to clipboard
abstract var data: Any

Data that is posted with the resource.

Link copied to clipboard
abstract var headers: Any?

Additional HTTP headers that will be sent. Default value - {}

Link copied to clipboard
abstract var overrideMimeType: String?

Overrides the MIME type returned by the server.

Link copied to clipboard
abstract var proxy: Proxy?

A proxy to be used when loading the resource.

Link copied to clipboard
abstract var queryParameters: Any?

An object containing query parameters that will be sent when retrieving the resource.

Link copied to clipboard
abstract var request: Request?

A Request object that will be used. Intended for internal use only.

Link copied to clipboard
abstract var responseType: String?

The type of response. This controls the type of item returned.

Link copied to clipboard
abstract var retryAttempts: Int?

The number of times the retryCallback should be called before giving up. Default value - 0

Link copied to clipboard

The Function to call when a request for this resource fails. If it returns true, the request will be retried.

Link copied to clipboard
abstract var templateValues: Any?

Key/Value pairs that are used to replace template values (eg. {x}).

Link copied to clipboard
abstract var url: String

The url of the resource.