public interface ResponseEnhancer
| Modifier and Type | Field and Description |
|---|---|
static ResponseEnhancer |
DO_NOT_MODIFY_RESPONSE |
| Modifier and Type | Method and Description |
|---|---|
LiveHttpResponse.Transformer |
enhance(LiveHttpResponse.Transformer responseBuilder,
LiveHttpRequest request)
Enhance response while it is being built.
|
default LiveHttpResponse |
enhance(LiveHttpResponse response,
LiveHttpRequest request)
Create a new enhanced response, based on an existing one.
|
static final ResponseEnhancer DO_NOT_MODIFY_RESPONSE
LiveHttpResponse.Transformer enhance(LiveHttpResponse.Transformer responseBuilder, LiveHttpRequest request)
responseBuilder - builder of responserequest - request to which Styx is respondingdefault LiveHttpResponse enhance(LiveHttpResponse response, LiveHttpRequest request)
enhance(LiveHttpResponse.Transformer, LiveHttpRequest) as it has to create a new builder
and build, but it suitable for cases where that would have to happen anyway.response - responserequest - requestCopyright © 2013–2020 Hotels.com. All rights reserved.