public class HttpResponse extends Object
| Constructor and Description |
|---|
HttpResponse(int code,
Headers headers,
InputStream rawBody)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Headers |
getHeaders()
Headers of the http response.
|
InputStream |
getRawBody()
Raw body of the http response.
|
protected String |
getRawBodyString()
String representation for raw body of the http response.
|
int |
getStatusCode()
HTTP Status code of the http response.
|
String |
toString()
Converts this HttpResponse into string format.
|
public HttpResponse(int code,
Headers headers,
InputStream rawBody)
code - The HTTP status codeheaders - The HTTP headers read from responserawBody - The raw data returned in the HTTP responsepublic int getStatusCode()
public Headers getHeaders()
public InputStream getRawBody()
protected String getRawBodyString()
Copyright © 2022. All rights reserved.