Package io.ably.lib.http
Class HttpUtils.ByteArrayRequestBody
java.lang.Object
io.ably.lib.http.HttpUtils.ByteArrayRequestBody
- All Implemented Interfaces:
HttpCore.RequestBody
- Enclosing class:
- HttpUtils
public static class HttpUtils.ByteArrayRequestBody extends java.lang.Object implements HttpCore.RequestBody
A RequestBody wrapping a byte array
-
Constructor Summary
Constructors Constructor Description ByteArrayRequestBody(byte[] bytes, java.lang.String contentType) -
Method Summary
Modifier and Type Method Description java.lang.StringgetContentType()byte[]getEncoded()
-
Constructor Details
-
ByteArrayRequestBody
public ByteArrayRequestBody(byte[] bytes, java.lang.String contentType)
-
-
Method Details
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceHttpCore.RequestBody
-
getContentType
public java.lang.String getContentType()- Specified by:
getContentTypein interfaceHttpCore.RequestBody
-