Params

class Params(val url: String?, val headers: Map<String, String>?, val httpMethod: HttpMethod, val contentType: String?, val platformFile: PlatformFile, val onProgress: suspend (Float) -> Unit = {})

Constructors

Link copied to clipboard
constructor(url: String?, headers: Map<String, String>?, httpMethod: HttpMethod, contentType: String?, platformFile: PlatformFile, onProgress: suspend (Float) -> Unit = {})

Properties

Link copied to clipboard

content type of the uploaded file.

Link copied to clipboard

request headers.

Link copied to clipboard
val httpMethod: HttpMethod

HTTP method.

Link copied to clipboard
val onProgress: suspend (Float) -> Unit

called repeatedly with upload progress (0f–1f).

Link copied to clipboard
val platformFile: PlatformFile

the file to upload.

Link copied to clipboard
val url: String?

endpoint — nullable so it can instead be staged beforehand via SetIncomingDataToNetworkParamsHolderUrl and resolved from NetworkParametersHolder.