Skip to contents

vcr

High level overview of package

vcr vcr-package
vcr: Record 'HTTP' Calls to Disk

Configuration

Use use_vcr to get started

Main functions

Probably the only functions you’ll need

use_cassette() local_cassette()
Use a cassette to record HTTP requests

vcr in tests

Functions for more custom workflows

turn_on() turn_off() turned_off() turned_on() skip_if_vcr_off()
Turn vcr on and off
vcr_test_path()
Locate file in tests directory

Enable/Disable vcr

Managing cassettes

cassettes() current_cassette() cassette_path()
List cassettes, get current cassette, etc.
check_cassette_names()
Check cassette names

Internals

You shouldn’t need to use these directly

Cassette
Cassette handler
vcr_last_error()
UnhandledHTTPRequestError
request_summary() response_summary()
request and response summary methods