public class PartData
Represents a multipart/form-data entry. Could be a class PartData.FormItem
or class PartData.FileItem
class PartData.FormItem
,
class PartData.FileItem
Modifier and Type | Class and Description |
---|---|
static class |
PartData.BinaryItem
Represents a binary item
|
static class |
PartData.FileItem
Represents a file item
|
static class |
PartData.FormItem
Represents a multipart form item
|
Modifier and Type | Method and Description |
---|---|
ContentDisposition |
getContentDisposition()
Parsed
Content-Disposition header or null if missing |
ContentType |
getContentType()
Parsed
Content-Type header or null if missing |
kotlin.jvm.functions.Function0<kotlin.Unit> |
getDispose()
to be invoked when this part is no longed needed
|
Headers |
getHeaders()
of this part,
|
java.lang.String |
getName()
Optional part name based on
Content-Disposition header |
Headers |
getPartHeaders()
Deprecated.
|
java.lang.String |
getPartName()
Deprecated.
|
public ContentDisposition getContentDisposition()
Parsed Content-Disposition
header or null
if missing
public ContentType getContentType()
Parsed Content-Type
header or null
if missing
public java.lang.String getName()
Optional part name based on Content-Disposition
header
public java.lang.String getPartName()
public Headers getPartHeaders()
public kotlin.jvm.functions.Function0<kotlin.Unit> getDispose()
to be invoked when this part is no longed needed
public Headers getHeaders()
of this part,
could be inaccurate on some engines