cfboom.http.HttpMessagecfboom.http.HttpResponse
cfboom.http.client.ClientHttpResponse
Represents a client-side HTTP response. Obtained via an calling of the {@link ClientHttpRequest#execute()}.
A {@code ClientHttpResponse} must be {@linkplain #close() closed}, typically in a {@code finally} block.
Method Summary | |
---|---|
void
|
close()
Close this response, freeing any resources created. |
any
|
getBody()
Return the body of the message as an input stream. |
numeric
|
getRawStatusCode()
Return the HTTP status code of the response as integer. |
HttpStatus
|
getStatusCode()
Return the HTTP status code of the response. |
string
|
getStatusText()
Return the HTTP status text of the response. |
Methods inherited from class cfboom.http.HttpResponse |
---|
getCode, getReasonPhrase, getRequest, isClientError, isInformational, isRedirection, isServerError, isSuccess, setRequest |
Methods inherited from class cfboom.http.HttpMessage |
---|
addHeader, containsHeader, getAllHeaders, getContentEncoding, getContentLength, getContentType, getFirstHeader, getHeaders, getLastHeader, removeHeaders, setHeader, setHeaders |
Method Detail |
---|
Close this response, freeing any resources created.
Return the body of the message as an input stream.
Return the HTTP status code of the response as integer
Return the HTTP status code of the response.
Return the HTTP status text of the response.