PartData

sealed class PartData

Represents a multipart/form-data entry. Could be a FormItem or FileItem

Types

Link copied to clipboard
class BinaryItem(provider: () -> Input, dispose: () -> Unit, partHeaders: Headers) : PartData

Represents a binary item

Link copied to clipboard
class FileItem(provider: () -> Input, dispose: () -> Unit, partHeaders: Headers) : PartData

Represents a file item

Link copied to clipboard
class FormItem(value: String, dispose: () -> Unit, partHeaders: Headers) : PartData

Represents a multipart form item

Properties

Link copied to clipboard
val contentDisposition: ContentDisposition?

Parsed Content-Disposition header or null if missing

Link copied to clipboard
val contentType: ContentType?

Parsed Content-Type header or null if missing

Link copied to clipboard
val dispose: () -> Unit

to be invoked when this part is no longed needed

Link copied to clipboard
val headers: Headers

of this part, could be inaccurate on some engines

Link copied to clipboard
val name: String?

Optional part name based on Content-Disposition header

Link copied to clipboard
val partHeaders: Headers
Link copied to clipboard
val partName: String?

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard