HttpResponse
@Deprecated
public interface IHttpResponse
extends java.lang.AutoCloseable
Modifier and Type | Method and Description |
---|---|
HttpHeader[] |
getAllHeaders()
Deprecated.
Returns all the headers of this response.
|
java.io.InputStream |
getContent()
Deprecated.
Obtains the content of this response, if any.
|
HttpHeader |
getFirstHeader(java.lang.String name)
Deprecated.
Returns the first header with a specified name of this response.
|
HttpHeader[] |
getHeaders(java.lang.String name)
Deprecated.
Returns all the headers with a specified name of this response.
|
java.lang.String |
getHttpVersion()
Deprecated.
Returns the http version for this response.
|
java.lang.String |
getReasonPhrase()
Deprecated.
Returns the reason phrase for this response.
|
int |
getStatusCode()
Deprecated.
Returns the status code for this response.
|
java.lang.String getHttpVersion()
int getStatusCode()
java.lang.String getReasonPhrase()
HttpHeader[] getAllHeaders()
HttpHeader[] getHeaders(java.lang.String name)
name
- the name of the headers to return.HttpHeader getFirstHeader(java.lang.String name)
name
- the name of the header to return.java.io.InputStream getContent()