Learn R Programming

⚠️There's a newer version (1.7.0) of this package.Take me there.

vcr (version 1.2.2)

Record 'HTTP' Calls to Disk

Description

Record test suite 'HTTP' requests and replays them during future runs. A port of the Ruby gem of the same name (). Works by hooking into the 'webmockr' R package for matching 'HTTP' requests by various rules ('HTTP' method, 'URL', query parameters, headers, body, etc.), and then caching real 'HTTP' responses on disk in 'cassettes'. Subsequent 'HTTP' requests matching any previous requests in the same 'cassette' use a cached 'HTTP' response.

Copy Link

Version

Install

install.packages('vcr')

Monthly Downloads

4,272

Version

1.2.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Scott Chamberlain

Last Published

June 25th, 2023

Functions in vcr (1.2.2)

Hooks

Hooks class
RequestHandlerCrul

RequestHandlerCrul
JSON

The JSON serializer
Request

The request of an HTTPInteraction
Persisters

Cassette persisters
HTTPInteraction

HTTPInteraction class
HTTPInteractionList

HTTPInteractionList class
RequestHandler

RequestHandler
as.cassette

Coerce names, etc. to cassettes
RequestHandlerHttr

RequestHandlerHttr
Cassette

Cassette handler
cassettes

List cassettes, get current cassette, etc.
UnhandledHTTPRequestError

UnhandledHTTPRequestError
FileSystem

File system persister
Serializers

Cassette serializers
VcrResponse

The response of an HTTPInteraction
YAML

The YAML serializer
request-matching

vcr request matching
RequestIgnorer

Request ignorer
eject_cassette

Eject a cassette
insert_cassette

Insert a cassette to record HTTP requests
recording

vcr recording options
real_http_connections_allowed

Are real http connections allowed?
RequestMatcherRegistry

RequestMatcherRegistry
use_vcr

Setup vcr for a package
use_cassette

Use a cassette to record HTTP requests
request_response

request and response summary methods
lightswitch

Turn vcr on and off, check on/off status, and turn off for a given http call
http_interactions

Get the http interactions of the current cassette
vcr_logging

vcr log file setup
skip_if_vcr_off

Skip tests if vcr is off
Serializer

Serializer class - base class for JSON/YAML serializers
check_cassette_names

Check cassette names
vcr

vcr: Record HTTP Calls to Disk
vcr_configure

Global Configuration Options
crul_request

An HTTP request as prepared by the crul package
str_splitter

split string every N characters
vcr_test_path

Locate file in tests directory