public class Response extends Object
| Modifier and Type | Method and Description | 
|---|---|
| void | discardContent()Discards response content and deallocates all resources associated with it. | 
| <T> T | handleResponse(org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler)Handles the response using the specified  HttpClientResponseHandler | 
| Content | returnContent() | 
| org.apache.hc.core5.http.HttpResponse | returnResponse() | 
| void | saveContent(File file) | 
public void discardContent()
public <T> T handleResponse(org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler)
                 throws IOException
HttpClientResponseHandlerIOExceptionpublic Content returnContent() throws IOException
IOExceptionpublic org.apache.hc.core5.http.HttpResponse returnResponse()
                                                     throws IOException
IOExceptionpublic void saveContent(File file) throws IOException
IOExceptionCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.