Skip to main content

Module replay

Module replay 

Source

Structs§

Fixture
RecordedResponse
ReplayHttpClient

Enums§

Mode

Constants§

SECRET_HEADERS
Header names (lowercase) that are never written to fixtures.
SECRET_PARAMS
Query parameter names (lowercase) whose values are removed from fixture keys.

Functions§

body_sha256
Hex SHA-256 of the request body.
clean_url
The URL with credentials, fragment and secret query parameters removed, and the rest of the query sorted. An unparseable URL becomes a hash of itself, so a secret inside it never reaches the key.
fixture_key
The identity of a request.
fixture_path
Where the fixture for a request lives.