Package io.odilon.client.http
Class HttpRequestBody
- java.lang.Object
-
- okhttp3.RequestBody
-
- io.odilon.client.http.HttpRequestBody
-
public class HttpRequestBody extends okhttp3.RequestBody
RequestBody that wraps a single data object.
-
-
Constructor Summary
Constructors Constructor Description HttpRequestBody(String contentType, Object data, int len)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
contentLength()
okhttp3.MediaType
contentType()
void
writeTo(okio.BufferedSink sink)
-
-
-
Method Detail
-
contentType
public okhttp3.MediaType contentType()
- Specified by:
contentType
in classokhttp3.RequestBody
-
contentLength
public long contentLength()
- Overrides:
contentLength
in classokhttp3.RequestBody
-
writeTo
public void writeTo(okio.BufferedSink sink) throws IOException
- Specified by:
writeTo
in classokhttp3.RequestBody
- Throws:
IOException
-
-