exvcr v0.11.0 ExVCR.Config

Assign configuration parameters.

Link to this section Summary

Functions

Initializes library dir to store cassette json files.

  • vcr_dir: directory for storing recorded json file.
  • custom_dir: directory for placing custom json file

Replace the specified request header with placeholder. It can be used to remove sensitive data from the casette file

Replace the specified request header with placeholder. It can be used to remove sensitive data from the casette file

Clear the previously specified filter_sensitive_data lists

Replace the specified pattern with placeholder. It can be used to remove sensitive data from the casette file

Set the flag whether to filter-out url params when recording to cassettes. (ex. if flag is true, “param=val” is removed from “http://example.com?param=val”)

Skip recording cassettes for localhost requests when set

Sets a list of headers to remove from the response

Link to this section Functions

Link to this function cassette_library_dir(vcr_dir, custom_dir \\ nil)

Initializes library dir to store cassette json files.

  • vcr_dir: directory for storing recorded json file.
  • custom_dir: directory for placing custom json file.
Link to this function filter_request_headers(header)

Replace the specified request header with placeholder. It can be used to remove sensitive data from the casette file.

Link to this function filter_request_options(header)

Replace the specified request header with placeholder. It can be used to remove sensitive data from the casette file.

Link to this function filter_sensitive_data(atom)

Clear the previously specified filter_sensitive_data lists.

Link to this function filter_sensitive_data(pattern, placeholder)

Replace the specified pattern with placeholder. It can be used to remove sensitive data from the casette file.

Link to this function filter_url_params(flag)

Set the flag whether to filter-out url params when recording to cassettes. (ex. if flag is true, “param=val” is removed from “http://example.com?param=val”).

Link to this function ignore_localhost(value)

Skip recording cassettes for localhost requests when set

Link to this function response_headers_blacklist(headers_blacklist)

Sets a list of headers to remove from the response