public class Response extends Object
| Constructor and Description |
|---|
Response(HttpURLConnection conn)
Creates a new response for a HTTP connection
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHeader(String name)
Gets the value of a named response header field
|
List<String> |
getHeaders(String name)
Gets the values of a named response header field
|
InputStream |
getInputStream() |
public Response(HttpURLConnection conn)
conn - the HTTP connectionpublic InputStream getInputStream() throws IOException
IOException - if the input stream could not be createdpublic String getHeader(String name)
name - the header field's name