0.8.1 (2021-10-21)
Features Added
- Exports
RecordMode
,PlaybackMode
, andLiveMode
for determining test mode - When running in
LiveMode
no traffic will be routed to the proxy and theStartRecording
/StopRecording
methods are no-ops. - Adds the following sanitizers:
BodyKeySanitizer
,BodyRegexSanitizer
,ContinuationSanitizer
,GeneralRegexSanitizer
,HeaderRegexSanitizer
,OAuthResponseSanitizer
,RemoveHeaderSanitizer
,URISanitizer
,URISubscriptionIDSanitizer
- Adds
ResetSanitizer
for removing all sanitizers in an active session. - Add
GroupForReplace
to therecording.RecordingOptions
option for use in sanitizers.
Breaking Changes
- Removes
testing.T
parameter fromGetEnvVariable
- Renames
IdHeader
toIDHeader
andUpstreamUriHeader
toUpstreamURIHeader
- Renames
StartRecording
toStart
andStopRecording
toStop