public class SimpleHttpResponse extends Object implements Serializable
| Constructor and Description |
|---|
SimpleHttpResponse() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String key,
String value) |
static SimpleHttpResponse |
fromBytes(byte[] bytes) |
byte[] |
getContent() |
Map<String,String> |
getHeaders() |
int |
getStatus() |
void |
setContent(byte[] content) |
void |
setHeaders(Map<String,String> headers) |
void |
setStatus(int status) |
static byte[] |
toBytes(SimpleHttpResponse response) |
public byte[] getContent()
public void setContent(byte[] content)
public int getStatus()
public void setStatus(int status)
public static byte[] toBytes(SimpleHttpResponse response) throws IOException
IOExceptionpublic static SimpleHttpResponse fromBytes(byte[] bytes) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2021. All rights reserved.