ReqVCR.Redactor (ReqVCR v0.2.0)

View Source

A module for redacting sensitive information from requests and responses.

Summary

Functions

Redacts sensitive information from the given data based on the provided filters.

Functions

redact_body(body, filters)

@spec redact_body(binary(), list() | false) :: binary()

redact_headers(headers, filters)

@spec redact_headers(map(), list() | false) :: map()

redact_url(url, filters)

@spec redact_url(binary(), list() | false) :: binary()

Redacts sensitive information from the given data based on the provided filters.

Parameters

  • data - the data to redact (can be a map or a URI struct)
  • filters - a list of keys to redact

Returns

  • the redacted data