public class HttpStringResponse extends HttpResponse
| Constructor and Description |
|---|
HttpStringResponse(int code,
Headers headers,
InputStream rawBody,
String body)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBody()
String body of the http response.
|
String |
toString()
Converts this HttpStringResponse into string format.
|
getHeaders, getRawBody, getRawBodyString, getStatusCodepublic HttpStringResponse(int code,
Headers headers,
InputStream rawBody,
String body)
code - The HTTP status codeheaders - The HTTP headers read from responserawBody - The raw data returned in the HTTP responsebody - String response bodypublic String getBody()
public String toString()
toString in class HttpResponseCopyright © 2022. All rights reserved.