Register and Use a Custom Matcher
Background ()
---
http_interactions:
- request:
method: get
uri: http://foo.com:9000/foo
body:
encoding: UTF-8
string: ""
headers: {}
response:
status:
code: 200
message: OK
headers:
Content-Length:
- "18"
body:
encoding: UTF-8
string: port 9000 response
http_version: "1.1"
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
- request:
method: get
uri: http://foo.com:8000/foo
body:
encoding: UTF-8
string: ""
headers: {}
response:
status:
code: 200
message: OK
headers:
Content-Length:
- "18"
body:
encoding: UTF-8
string: port 8000 response
http_version: "1.1"
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
recorded_with: VCR 2.0.0Use a callable as a custom request matcher
Examples
Register a named custom matcher
Last updated