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 IHttpResponsepublic Map<String,List<String>> headers()
headers in interface IHttpResponsepublic String body()
body in interface IHttpResponsepublic HttpResponse statusCode(int statusCode)
this.public HttpResponse body(String body)
this.Copyright © 2013–2025. All rights reserved.