Skip to contents

Inspect or delete a cassette

Usage

zu_cassette_interactions(
  dir = file.path(tempdir(), "zuhttp-cassettes"),
  name = "default"
)

zu_cassette_clear(
  dir = file.path(tempdir(), "zuhttp-cassettes"),
  name = "default"
)

Arguments

dir, name

The cassette's directory and name, as given to zu_cassette_transport().

Value

zu_cassette_interactions() a list of recorded interactions, each with request, response and recorded_at, all already redacted; zu_cassette_clear() TRUE if a file was removed, invisibly.

Lifecycle

Experimental (D-65). The testing tools are exported so that package tests can run without a network, and may still change before 1.0; the request functions, response accessors and conditions are the stable API.

Examples

zu_cassette_interactions(tempdir(), "no-such-cassette")
#> list()