HTTPResponse<Void> |
HTTPResponseContext.discard() |
Consume and discard this response body.
|
<T> HTTPResponse<T> |
HTTPResponseContext.handle(ResponseHandler<T> responseHandler) |
Handle response body with handler, return a new response with content as handler result.
|
<T> HTTPResponse<T> |
HTTPResponseContext.handleAsInput(Function<? super InputStream,T> handler) |
Handle response content as InputStream.
|
<T> HTTPResponse<T> |
HTTPResponseContext.handleAsReader(Function<? super Reader,T> handler) |
Handle response content as reader.
|
HTTPResponse<byte[]> |
HTTPResponseContext.toBinaryResponse() |
Convert to response, with body as byte array
|
HTTPResponse<String> |
HTTPResponseContext.toStringResponse() |
Convert to response, with body as text.
|
<R> HTTPResponse<R> |
HTTPResponse.transform(Function<T,R> transformer) |
Return a new Response, with body is the result apply transformer on the original response body.
|
HTTPResponse<Void> |
HTTPResponseContext.writeTo(OutputStream out) |
Write response body to OutputStream.
|
HTTPResponse<Void> |
HTTPResponseContext.writeTo(Writer writer) |
|
HTTPResponse<Path> |
HTTPResponseContext.writeTo(Path path) |
Write response body to file
|