Package-level declarations
Types
A callback function type for tracking upload progress.
Information about a file to upload in a multipart request. This allows uploading from custom sources beyond regular files.
Functions
Returns the response body as type T if the statusFilter condition is met, otherwise returns null. By default, the filter checks if the status code is HttpStatusCode.OK.
Returns the response body as type T if the status code is not HttpStatusCode.NoContent, otherwise returns null. This is useful for handling responses that may return 204 No Content.
Creates a Ktor InputProvider from this multiplatform file for use in HTTP client requests. The input provider knows the file size and can create input streams on demand.
Uploads a file to a temporary storage on the server. The server should provide an endpoint that accepts multipart uploads and returns a TemporalFileId.
Throws a ClientRequestException if this HttpResponse does not have a successful status code. A status code is considered successful if it's in the 2xx range.
Will execute submitting of multipart data request
Additional variant of uniUpload which will unify sending of some UniUploadFileInfo with the server
Additional variant of uniUpload which will unify sending of some UniUploadFileInfo (built from fileName, mimeType and inputAllocator) with the server