public final class HttpResponse extends Object implements Closeable
HttpRequest.| Modifier and Type | Class and Description |
|---|---|
static class |
HttpResponse.Builder
Builder to build
HttpResponse. |
| Modifier and Type | Method and Description |
|---|---|
static HttpResponse.Builder |
builder()
Creates builder to build
HttpResponse. |
static HttpResponse.Builder |
builderFrom(HttpResponse httpResponse)
Creates a builder to build
HttpResponse and initialize it with the given object. |
void |
close()
Closes the body of this response.
|
protected void |
finalize() |
AsyncContentProvider |
getBody()
The body of the HTTP response.
|
Map<String,String> |
getHeaders()
The headers of the HTTP response.
|
int |
getStatus()
The status of the HTTP response.
|
@Generated(value="SparkTools") public static HttpResponse.Builder builder()
HttpResponse.@Generated(value="SparkTools") public static HttpResponse.Builder builderFrom(HttpResponse httpResponse)
HttpResponse and initialize it with the given object.httpResponse - to initialize the builder withpublic void close()
HttpResponseAbortException is passed to the listener registered via
AsyncContentProvider.onError(java.util.function.Consumer).close in interface Closeableclose in interface AutoCloseableprotected void finalize()
throws Throwable
public AsyncContentProvider getBody()
public int getStatus()
Copyright © 2011–2019 Everit Kft.. All rights reserved.