public final class PlaybackClient extends Object implements HttpClient
NetworkCallRecords.| Constructor and Description |
|---|
PlaybackClient(RecordedData recordedData,
Map<String,String> textReplacementRules)
Creates a PlaybackClient that replays network calls from
recordedData and replaces
response text for any rules specified in textReplacementRules. |
| Modifier and Type | Method and Description |
|---|---|
HttpClient |
port(int i) |
HttpClient |
proxy(Supplier<ProxyOptions> supplier) |
reactor.core.publisher.Mono<HttpResponse> |
send(HttpRequest request) |
HttpClient |
wiretap(boolean b) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDefaultpublic PlaybackClient(RecordedData recordedData, Map<String,String> textReplacementRules)
recordedData and replaces
response text for any rules specified in textReplacementRules.recordedData - The data to playback.textReplacementRules - A set of rules to replace text in network call responses.public reactor.core.publisher.Mono<HttpResponse> send(HttpRequest request)
send in interface HttpClientpublic HttpClient proxy(Supplier<ProxyOptions> supplier)
proxy in interface HttpClientpublic HttpClient wiretap(boolean b)
wiretap in interface HttpClientpublic HttpClient port(int i)
port in interface HttpClientCopyright © 2019 Microsoft Corporation. All rights reserved.