Modifier and Type | Method and Description |
---|---|
byte[] |
asBytes() |
String |
asString() |
static Request.Body |
create(byte[] data) |
static Request.Body |
create(byte[] data,
Charset charset) |
static Request.Body |
create(String data) |
static Request.Body |
create(String data,
Charset charset) |
static Request.Body |
empty() |
Optional<Charset> |
getEncoding() |
boolean |
isBinary() |
int |
length() |
public int length()
public byte[] asBytes()
public String asString()
public boolean isBinary()
public static Request.Body create(String data)
public static Request.Body create(String data, Charset charset)
public static Request.Body create(byte[] data)
public static Request.Body create(byte[] data, Charset charset)
public static Request.Body empty()
Copyright © 2012–2020 OpenFeign. All rights reserved.