Releases: seborama/govcr
Code refactoring
v4.3.0 Edited TODO cassette.replayResponse
Add option to remove TLS from recording
Use VCRConfig.RemoveTLS
to control TLS recording on the cassette.
Thanks to @klauspost
Minor update to README
v4.1.0 Update README.md
Remove Path from cassette files
See PR #38 for details.
Add support for Long Play (compressed) cassettes
See the README.md for details.
Thanks to @klauspost for his contribution!
See the tests for examples, in particular:
TestLongPlay()
ingovcr_test.go
govcr_example4_test.go
Add helper function RequestExcludeHeaderFunc
This is to help migrating from v2 to v3.
Thanks to @klauspost for another nice contribution.
Note that the helper RequestExcludeHeaderFunc will be removed on or after April 25th 2019!
Advanced filters
This release replaces ExcludeHeaderFunc and FilterFunc's with RequestFilters and ResponseFilters.
Filters are much more flexible and simpler to use. They also offer the possibility to more easily re-use Filters and create re-usable "recipes" of Filters.
Many thanks to @klauspost for his great work!
Here's a simple example:
govcr.VCRConfig{
RequestFilters: govcr.RequestFilters{
govcr.RequestDeleteHeaderKeys("X-Custom-My-Date"),
},
}
Refer to examples/example6.go for advanced examples.
Test fixes (example.com)
No new functionality.
Tests have been fixed to reflect changes made by example.com.
Small correction to a comment
Thanks Allen for PR 30
Some linting, minor README updates and Makefile fix
v2.4.0 Some linting, minor README updates and Makefile fix