public class SimpleHttpResponse extends Object
| Constructor and Description |
|---|
SimpleHttpResponse(String statusLine,
Map<String,String> headers) |
SimpleHttpResponse(String statusLine,
Map<String,String> headers,
byte[] body) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBody() |
String |
getBodyAsString() |
String |
getHeader(String key)
Get header of the key ignoring case.
|
Map<String,String> |
getHeaders() |
Integer |
getStatusCode() |
String |
getStatusLine() |
void |
setBody(byte[] body) |
String |
toString() |
public void setBody(byte[] body)
public byte[] getBody()
public String getStatusLine()
public Integer getStatusCode()
public String getHeader(String key)
key - header keypublic String getBodyAsString()
Copyright © 2020 Alibaba Group. All rights reserved.