View Source ExVCR.Config (exvcr v0.13.3)

Assign configuration parameters.

Link to this section Summary

Functions

Initializes library dir to store cassette json files.

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

Skip recording cassettes for urls requests when set

Sets a list of headers to remove from the response

Throw error if there is no matching cassette for an HTTP request

Link to this section Functions

Link to this function

cassette_library_dir(vcr_dir, custom_dir \\ nil)

View Source

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)

View Source

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)

View Source

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)

View Source

Clear the previously specified filter_sensitive_data lists.

Link to this function

filter_sensitive_data(pattern, placeholder)

View Source

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

Skip recording cassettes for urls requests when set

Link to this function

response_headers_blacklist(headers_blacklist)

View Source

Sets a list of headers to remove from the response

Throw error if there is no matching cassette for an HTTP request