public abstract class _HttpHelperRequestBody extends Object implements HttpRequestBody
| Constructor and Description |
|---|
_HttpHelperRequestBody() |
| Modifier and Type | Method and Description |
|---|---|
abstract byte[] |
bytes() |
abstract Charset |
charset() |
abstract int |
contentLength() |
static _HttpHelperRequestBody |
create(byte[] bytes,
Charset charset) |
static _HttpHelperRequestBody |
create(byte[] bytes,
Charset charset,
int contentLength) |
static _HttpHelperRequestBody |
create(String body,
Charset charset) |
String |
string() |
String |
toString() |
public abstract int contentLength()
public abstract Charset charset()
charset in interface HttpRequestBodypublic abstract byte[] bytes()
bytes in interface HttpRequestBodypublic static _HttpHelperRequestBody create(byte[] bytes, Charset charset)
public static _HttpHelperRequestBody create(String body, Charset charset)
public static _HttpHelperRequestBody create(byte[] bytes, Charset charset, int contentLength)
public String string()
Copyright © 2018. All rights reserved.