exvcr v0.8.5 ExVCR.Config

Assign configuration parameters.

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

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”)

Sets a list of headers to remove from the response

Functions

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.
filter_request_headers(header)

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

filter_sensitive_data(atom)

Clear the previously specified filter_sensitive_data lists.

filter_sensitive_data(pattern, placeholder)

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

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”).

response_headers_blacklist(headers_blacklist)

Sets a list of headers to remove from the response