mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 01:03:24 +00:00
fix docs for post data filter
This commit is contained in:
committed by
Ivan Malison
parent
0def349420
commit
9038bc9066
@@ -295,7 +295,7 @@ with my_vcr.use_cassette('test.yml', filter_query_parameters=['api_key']):
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Filter information from HTTP post data
|
### Filter information from HTTP post data
|
||||||
Use the `filter_post_data_parameters` configuration option with a list of query
|
Use the `filter_post_data_parameters` configuration option with a list of post data
|
||||||
parameters to filter.
|
parameters to filter.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
@@ -305,7 +305,7 @@ with my_vcr.use_cassette('test.yml', filter_post_data_parameters=['client_secret
|
|||||||
|
|
||||||
### Custom Request filtering
|
### Custom Request filtering
|
||||||
|
|
||||||
If neither of these covers your request filtering needs, you can register a callback
|
If none of these covers your request filtering needs, you can register a callback
|
||||||
that will manipulate the HTTP request before adding it to the cassette. Use the
|
that will manipulate the HTTP request before adding it to the cassette. Use the
|
||||||
`before_record` configuration option to so this. Here is an example that will
|
`before_record` configuration option to so this. Here is an example that will
|
||||||
never record requests to the /login endpoint.
|
never record requests to the /login endpoint.
|
||||||
|
|||||||
Reference in New Issue
Block a user