public class ByteArrayRequestBody extends Object implements RequestBody
| Constructor and Description |
|---|
ByteArrayRequestBody(String contentType,
byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Integer> |
getContentLength() |
String |
getContentType() |
void |
write(OutputStream out) |
public ByteArrayRequestBody(String contentType, byte[] bytes)
public String getContentType()
getContentType in interface RequestBodypublic Optional<Integer> getContentLength()
getContentLength in interface RequestBodypublic void write(OutputStream out) throws IOException
write in interface RequestBodyIOExceptionCopyright © 2019. All rights reserved.