public class FetchResponse extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FetchResponse.Builder |
| Modifier and Type | Field and Description |
|---|---|
InputStream |
content
Streamed content of the response
|
JsonNode |
data
Response body of the response
|
Map<String,String> |
headers
HTTP headers of the response
|
int |
status
HTTP status code of the response
|
String |
url
URL of the response
|
| Modifier | Constructor and Description |
|---|---|
protected |
FetchResponse(FetchResponse.Builder builder) |
|
FetchResponse(int status,
Map<String,String> headers) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent() |
JsonNode |
getData() |
Map<String,String> |
getHeaders() |
int |
getStatus() |
String |
getUrl() |
public final int status
public JsonNode data
public InputStream content
public FetchResponse(int status, Map<String,String> headers)
protected FetchResponse(FetchResponse.Builder builder)
public int getStatus()
public JsonNode getData()
public InputStream getContent()
public Map<String,String> getHeaders()