public abstract class URLRequestBody
extends RequestBody
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
URLRequestBody.CountOutputStream |
| 构造器和说明 |
|---|
URLRequestBody() |
| 限定符和类型 | 方法和说明 |
|---|---|
static RequestBody |
create(MediaType contentType,
byte[] content)
Returns a new call body that transmits
content. |
static RequestBody |
create(MediaType contentType,
byte[] content,
int offset,
int byteCount)
Returns a new call body that transmits
content. |
static RequestBody |
create(MediaType contentType,
java.io.File file)
Returns a new call body that transmits the content of
file. |
static RequestBody |
create(MediaType contentType,
java.lang.String content) |
public static RequestBody create(MediaType contentType,
java.lang.String content)
public static RequestBody create(MediaType contentType,
byte[] content)
content.public static RequestBody create(MediaType contentType,
byte[] content,
int offset,
int byteCount)
content.public static RequestBody create(MediaType contentType,
java.io.File file)
file.