public final class CachedResponse extends Object implements Response
It can be useful when testing one response against multiple matchers, and response from slice should be called only once.
Response.Wrap| Constructor and Description |
|---|
CachedResponse(Response origin)
Wraps response with stateful connection.
|
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
send(Connection connection)
Send the response.
|
String |
toString() |
public CachedResponse(Response origin)
origin - Origin responsepublic CompletionStage<Void> send(Connection connection)
ResponseCopyright © 2012–2020 jcabi.com. All rights reserved.