Crate http_client_vcr

Crate http_client_vcr 

Source

Structs§

BodyFilter
Cassette
CassetteAnalysis
CustomFilter
DefaultMatcher
ExactMatcher
FilterChain
FormDataAnalysis
HeaderFilter
Interaction
NoOpClient
A no-op HTTP client that always fails with an error.
PanickingNoOpClient
A variant of NoOpClient that panics instead of returning an error.
SerializableRequest
SerializableResponse
SmartFormFilter
UrlFilter
VcrClient
VcrClientBuilder

Enums§

CassetteFormat
VcrMode

Traits§

Filter
RequestMatcher

Functions§

analyze_cassette_file
Analyze a cassette file for sensitive data without modifying it This helps identify what needs to be filtered
analyze_form_data
Analyze form data and return a report of what was found
extract_username_from_cassette
Get the username from a cassette (useful for test setup) Returns the first username found in form data
filter_cassette_file
Utility function to apply filters to a cassette file and save the filtered version This is useful for batch processing cassette files without creating a VcrClient
filter_form_data
Filter sensitive form data by replacing credential values
find_credential_fields
Detect potential credential fields in form data
mutate_all_interactions
Apply mutation functions to both requests and responses in a cassette file
mutate_all_requests
Apply a filter function to all requests in a cassette file This allows for custom mutation logic beyond the standard filter chains
mutate_all_responses
Apply a filter function to all responses in a cassette file
parse_form_data
Parse URL-encoded form data into key-value pairs
remove_header_from_all_requests
Remove specific header from all requests
replace_form_field_in_all_requests
Replace specific field values in all form data requests
replace_header_in_all_requests
Replace specific header value in all requests
replace_username_in_all_requests
Helper to replace all instances of a specific username across all requests
sanitize_cassette_for_sharing
One-stop function to sanitize an entire cassette for sharing/testing
scrub_urls_in_all_requests
Scrub URLs by removing or replacing query parameters
set_test_password_in_cassette
Replace the password in all requests with a test password This is useful when you want to use a known test password for replay
strip_all_cookies
Helper to remove all cookie headers from requests and set-cookie from responses
strip_all_credentials_from_requests
Helper to remove all sensitive form data from requests using smart detection