PlaybackClient Class

  • java.lang.Object
    • com.azure.core.test.http.PlaybackClient

Implements

public final class PlaybackClient
implements HttpClient

HTTP client that plays back NetworkCallRecord.

Constructor Summary

Constructor Description
PlaybackClient(RecordedData recordedData, Map<String,String> textReplacementRules)

Creates a PlaybackClient that replays network calls from recordedData and replaces getResponse() for any rules specified in textReplacementRules.

Method Summary

Modifier and Type Method and Description
Mono<HttpResponse> send(HttpRequest request)

Methods inherited from java.lang.Object

Constructor Details

PlaybackClient

public PlaybackClient(RecordedData recordedData, Map textReplacementRules)

Creates a PlaybackClient that replays network calls from recordedData and replaces getResponse() for any rules specified in textReplacementRules.

Parameters:

recordedData - The data to playback.
textReplacementRules - A set of rules to replace text in network call responses.

Method Details

send

public Mono send(HttpRequest request)

Parameters:

request

Applies to