public class HttpResponse extends Object implements IHttpResponse
Constructor and Description |
---|
HttpResponse() |
Modifier and Type | Method and Description |
---|---|
void |
addHeaders(Map<String,List<String>> responseHeaders) |
String |
body()
HTTP response body
|
HttpResponse |
body(String body)
HTTP response body
|
Map<String,List<String>> |
headers()
HTTP response headers
|
int |
statusCode()
HTTP response status code
|
HttpResponse |
statusCode(int statusCode)
HTTP response status code
|
public void addHeaders(Map<String,List<String>> responseHeaders)
responseHeaders
- Map of HTTP headers returned from HTTP clientpublic int statusCode()
statusCode
in interface IHttpResponse
public Map<String,List<String>> headers()
headers
in interface IHttpResponse
public String body()
body
in interface IHttpResponse
public HttpResponse statusCode(int statusCode)
public HttpResponse body(String body)
Copyright © 2013–2020. All rights reserved.