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()
Gets the HTTP response body.
|
HttpResponse |
body(String body) |
Map<String,List<String>> |
headers()
Gets the HTTP response headers.
|
int |
statusCode()
Gets the HTTP response status code.
|
HttpResponse |
statusCode(int statusCode) |
public void addHeaders(Map<String,List<String>> responseHeaders)
responseHeaders - Map of HTTP headers returned from HTTP clientpublic int statusCode()
IHttpResponsestatusCode in interface IHttpResponsepublic Map<String,List<String>> headers()
IHttpResponseheaders in interface IHttpResponsepublic String body()
IHttpResponsebody in interface IHttpResponsepublic HttpResponse statusCode(int statusCode)
public HttpResponse body(String body)
Copyright © 2013–2025. All rights reserved.