public interface Response
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getHeader(String headerName)
Return the header value
|
Map<String,List<String>> |
getHeaders()
Returns the response headers
|
int |
getStatus()
Returns the response HTTP Status code
|
byte[] |
readAllBytes()
Reads the response stream to the end and returns its value as a Byte[]
|
String |
readLine()
Reads one line from the response stream
|
String |
readToEnd()
Reads the response stream to the end and returns its value as a String
|
List<String> getHeader(String headerName)
headerName - Header to retrieveString readToEnd() throws IOException
IOException - ExceptionString readLine() throws IOException
IOException - Exceptionint getStatus()
byte[] readAllBytes()
throws IOException
IOException - ExceptionCopyright © 2019. All rights reserved.