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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContentType()byte[]getEncoded()
-
-
-
Method Detail
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin interfaceHttpCore.RequestBody
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentTypein interfaceHttpCore.RequestBody
-
-