Uses of Class
kong.unirest.core.ContentType
-
Packages that use ContentType Package Description kong.unirest.core -
-
Uses of ContentType in kong.unirest.core
Methods in kong.unirest.core that return ContentType Modifier and Type Method Description static ContentTypeContentType. create(String mimeType)static ContentTypeContentType. create(String mimeType, boolean isBinary)static ContentTypeContentType. create(String mimeType, Charset charset)ContentTypeContentType. withCharset(Charset charset)Methods in kong.unirest.core with parameters of type ContentType Modifier and Type Method Description default RHttpRequest. accept(ContentType value)The Accept header to send (e.g. application/json)default HttpRequestWithBodyHttpRequestWithBody. contentType(ContentType type)MultipartBodyHttpRequestWithBody. 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.MultipartBodyMultipartBody. field(String name, byte[] bytes, ContentType contentType, String fileName)add a simple field with a name and valueMultipartBodyMultipartBody. field(String name, InputStream value, ContentType contentType)add a simple field with a name and valueMultipartBodyMultipartBody. field(String name, InputStream stream, ContentType contentType, String fileName)add a simple field with a name and valueMultipartBodyMultipartBody. field(String name, String value, ContentType contentType)add a simple field with a name and value
-