public final class Response
extends java.lang.Object
for MIME types that are commonly used.
Modifier and Type | Method and Description |
---|---|
static ResponseBuilder |
builder() |
java.lang.String |
getAsString() |
byte[] |
getBytes() |
java.util.Optional<java.nio.charset.Charset> |
getCharset() |
int |
getCode() |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders() |
boolean |
isErrorResponse() |
public static ResponseBuilder builder()
public byte[] getBytes()
public java.lang.String getAsString()
public int getCode()
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
public java.util.Optional<java.nio.charset.Charset> getCharset()
public boolean isErrorResponse()