public class ReactiveResponse extends Object
A reactive wrapper over Jetty's HttpClient Response.
A ReactiveResponse is available as soon as the response headers arrived
to the client. The response content is processed by a response content
function specified in ReactiveRequest.response(BiFunction).
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ReactiveResponse.Content |
Collects utility methods to process response content.
|
static class |
ReactiveResponse.Event |
| Constructor | Description |
|---|---|
ReactiveResponse(ReactiveRequest request,
org.eclipse.jetty.client.api.Response response) |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getEncoding() |
|
org.eclipse.jetty.http.HttpFields |
getHeaders() |
|
String |
getMediaType() |
|
ReactiveRequest |
getReactiveRequest() |
|
org.eclipse.jetty.client.api.Response |
getResponse() |
|
int |
getStatus() |
|
String |
toString() |
public ReactiveResponse(ReactiveRequest request, org.eclipse.jetty.client.api.Response response)
public ReactiveRequest getReactiveRequest()
public org.eclipse.jetty.client.api.Response getResponse()
public int getStatus()
public org.eclipse.jetty.http.HttpFields getHeaders()
public String getMediaType()
Content-Type headergetEncoding()public String getEncoding()
Content-Type headergetMediaType()Copyright © 2017 The Jetty Project. All rights reserved.