public static class FetchResponse.Builder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected InputStream |
content |
protected JsonNode |
data |
protected Map<String,String> |
headers |
protected int |
status |
protected String |
url |
| Constructor and Description |
|---|
Builder(int status,
Map<String,String> headers) |
| Modifier and Type | Method and Description |
|---|---|
FetchResponse |
build() |
FetchResponse.Builder |
content(InputStream content) |
FetchResponse.Builder |
data(JsonNode data) |
FetchResponse.Builder |
url(String url) |
protected final int status
protected JsonNode data
protected InputStream content
public FetchResponse.Builder url(String url)
public FetchResponse.Builder data(JsonNode data)
public FetchResponse.Builder content(InputStream content)
public FetchResponse build()