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
HttpClientResponseHandler
IOException
public Content returnContent() throws IOException
IOException
public org.apache.hc.core5.http.HttpResponse returnResponse() throws IOException
IOException
public void saveContent(File file) throws IOException
IOException
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.