FileItem

class FileItem(val provider: () -> Input, val dispose: () -> Unit, partHeaders: Headers) : PartData

Represents a file item

Constructors

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

Properties

Link copied to clipboard

Parsed Content-Disposition header or null if missing

Link copied to clipboard

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

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

Original file name if present

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val provider: () -> Input

of content bytes

Extensions

Link copied to clipboard

Provides file item's content as an InputStream