Uses of Class
kong.unirest.core.ContentType
Packages that use ContentType
-
Uses of ContentType in kong.unirest.core
Fields in kong.unirest.core declared as ContentTypeModifier and TypeFieldDescriptionstatic final ContentType
ContentType.APPLICATION_ATOM_XML
static final ContentType
ContentType.APPLICATION_FORM_URLENCODED
static final ContentType
ContentType.APPLICATION_JSON
static final ContentType
ContentType.APPLICATION_JSON_PATCH
static final ContentType
ContentType.APPLICATION_OCTET_STREAM
static final ContentType
ContentType.APPLICATION_PDF
static final ContentType
ContentType.APPLICATION_SVG_XML
static final ContentType
ContentType.APPLICATION_XHTML_XML
static final ContentType
ContentType.APPLICATION_XML
static final ContentType
ContentType.BINARY_OCTET_STREAM
static final ContentType
ContentType.IMAGE_BMP
static final ContentType
ContentType.IMAGE_GIF
static final ContentType
ContentType.IMAGE_JPEG
static final ContentType
ContentType.IMAGE_PNG
static final ContentType
ContentType.IMAGE_SVG
static final ContentType
ContentType.IMAGE_TIFF
static final ContentType
ContentType.IMAGE_WEBP
static final ContentType
ContentType.MULTIPART_FORM_DATA
static final ContentType
ContentType.TEXT_HTML
static final ContentType
ContentType.TEXT_PLAIN
static final ContentType
ContentType.TEXT_XML
static final ContentType
ContentType.WILDCARD
Methods in kong.unirest.core that return ContentTypeModifier and TypeMethodDescriptionstatic ContentType
static ContentType
static ContentType
ContentType.withCharset
(Charset charset) Methods in kong.unirest.core with parameters of type ContentTypeModifier and TypeMethodDescriptiondefault R
HttpRequest.accept
(ContentType value) The Accept header to send (e.g.default HttpRequestWithBody
HttpRequestWithBody.contentType
(ContentType type) HttpRequestBody.field
(String name, InputStream stream, ContentType contentType, String fileName) HttpRequestMultiPart.field
(String name, byte[] bytes, ContentType contentType, String fileName) HttpRequestMultiPart.field
(String name, InputStream value, ContentType contentType) HttpRequestMultiPart.field
(String name, InputStream stream, ContentType contentType, String fileName) HttpRequestMultiPart.field
(String name, String value, ContentType contentType) HttpRequestWithBody.field
(String name, InputStream stream, ContentType contentType, String fileName) Sets a File on the body from a raw InputStream requires a specified content-type and file name.MultipartBody.field
(String name, byte[] bytes, ContentType contentType, String fileName) add a simple field with a name and valueMultipartBody.field
(String name, InputStream value, ContentType contentType) add a simple field with a name and valueMultipartBody.field
(String name, InputStream stream, ContentType contentType, String fileName) add a simple field with a name and valueMultipartBody.field
(String name, String value, ContentType contentType) add a simple field with a name and valueConstructors in kong.unirest.core with parameters of type ContentTypeModifierConstructorDescription(package private)
ByteArrayPart
(String name, byte[] bytes, ContentType contentType, String fileName)