public class OkHttpEncoders
extends java.lang.Object
Request content encoders specific to the OkHttp client implementation.
See the MultipartContent
class documentation for more configuration details.
Constructor and Description |
---|
OkHttpEncoders() |
Modifier and Type | Method and Description |
---|---|
static void |
multipart(ChainedHttpConfig config,
ToServer ts)
Encodes multipart/form-data where the body content must be an instance of the
MultipartContent class. |
public static void multipart(ChainedHttpConfig config, ToServer ts)
Encodes multipart/form-data where the body content must be an instance of the MultipartContent
class. Individual parts will be
encoded using the encoders available to the ChainedHttpConfig
object.
config
- the chained configuration objectts
- the server adapter