Uses of Interface
kong.unirest.core.MultipartBody
Packages that use MultipartBody
-
Uses of MultipartBody in kong.unirest.core
Subinterfaces with type arguments of type MultipartBody in kong.unirest.coreModifier and TypeInterfaceDescriptioninterfaceRepresents a multi-part body builder for a request.Methods in kong.unirest.core that return MultipartBodyModifier and TypeMethodDescriptionSets the value to use as the boundary identifier. see https://datatracker.ietf.org/doc/html/rfc2046Set the encoding of the request bodyMultipartBody.contentType(String mimeType) Set the mime-type of the request bodySets a File on the body.Sets a File on the body with a specified content-type.HttpRequestWithBody.field(String name, InputStream stream, String fileName) Sets a File on the body from a raw InputStream requires a file name.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.Sets a field param on the body.Sets a field param on the body with a specified content-type.HttpRequestWithBody.field(String name, Collection<?> value) Sets multiple field params on the body each with the same name.add a simple field with a name and valueMultipartBody.field(String name, byte[] bytes, ContentType contentType, String fileName) add a simple field with a name and valueadd a simple field with a name and valueadd a simple field with a name and valueMultipartBody.field(String name, InputStream stream, 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 valueadd a simple field with a name and valueadd a simple field with a name and valueMultipartBody.field(String name, String value, ContentType contentType) add a simple field with a name and valueMultipartBody.field(String name, Collection<?> values) add a simple field with a name and valueSets multiple field params on the body from a map of key/value pairs.MultipartBody.mode(MultipartMode value) Set the Apache Mode.HttpRequestWithBody.multiPartContent()Forces the request to send as multipart even if all params are simpleMultipartBody.uploadMonitor(ProgressMonitor monitor) Set a file Progress upload monitor suitable for drawing progress bars and whatnot.