- name
The name of the cassette. vcr will check this to ensure it
is a valid file name. Not allowed: spaces, file extensions, control
characters (e.g., \n
), illegal characters ('/', '?', '<', '>', '\', ':',
'*', '|', and '\"'), dots alone (e.g., '.', '..'), Windows reserved
words (e.g., 'com1'), trailing dots (can cause problems on Windows),
names longer than 255 characters. See section "Cassette names"
- record
The record mode (default: "once"
). See recording for a
complete list of the different recording modes.
- match_requests_on
List of request matchers
to use to determine what recorded HTTP interaction to replay. Defaults to
["method", "uri"]
. The built-in matchers are "method", "uri", "host",
"path", "headers", "body" and "query"
- update_content_length_header
(logical) Whether or
not to overwrite the Content-Length
header of the responses to
match the length of the response body. Default: FALSE
- allow_playback_repeats
(logical) Whether or not to
allow a single HTTP interaction to be played back multiple times.
Default: FALSE
.
- serialize_with
(character) Which serializer to use.
Valid values are "yaml" (default) and "json". Note that you can have
multiple cassettes with the same name as long as they use different
serializers; so if you only want one cassette for a given cassette name,
make sure to not switch serializers, or clean up files you no longer need.
- persist_with
(character) Which cassette persister to
use. Default: "file_system". You can also register and use a
custom persister.
- preserve_exact_body_bytes
(logical) Whether or not
to base64 encode the bytes of the requests and responses for
this cassette when serializing it. See also preserve_exact_body_bytes
in vcr_configure()
. Default: FALSE
- re_record_interval
(integer) How frequently (in seconds) the
cassette should be re-recorded. default: NULL
(not re-recorded)
- clean_outdated_http_interactions
(logical) Should outdated
interactions be recorded back to file? default: FALSE