public interface HttpResponse
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContentAsByteArray()
Get the content as
byte[]. |
JsonObject |
getContentAsJsonObject()
Gets the content as a JsonObject.
|
String |
getContentAsString()
Gets the content as a
UTF-8 String. |
String |
getContentAsString(String encoding)
Gets the content as a String using the specified
encoding.
|
String |
getContentType()
Gets the Content-Type.
|
Cookie |
getCookie(String name)
Gets a cookie.
|
Map<String,Cookie> |
getCookies()
Gets the cookies.
|
List<String> |
getHeader(String name)
Gets an header.
|
String |
getHeaderFirst(String name)
Gets the first value of an header.
|
Map<String,List<String>> |
getHeaders()
Gets the headers.
|
int |
getStatus()
Gets the HTTP status.
|
boolean |
isGzipped()
Is the response gzipped?
|
int getStatus()
String getContentType()
List<String> getHeader(String name)
boolean isGzipped()
String getContentAsString()
UTF-8 String.String getContentAsString(String encoding)
JsonObject getContentAsJsonObject()
byte[] getContentAsByteArray()
byte[].Copyright © 2017. All rights reserved.