parroty / exvcr

HTTP request/response recording library for elixir, inspired by VCR.
MIT License
727 stars 133 forks source link

Allow matching requests by headers #56

Closed drapergeek closed 8 years ago

drapergeek commented 8 years ago

A lot of apps authenticate via a token in the headers. We ran into an issue where exvcr would not allow us to make a request to the same endpoint as a different user and verify different results. This adds the support to allow matching by headers.

I'm happy to take any feedback. Please let me know if there is anything missing.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.1%) to 93.431% when pulling d7e22c006d49639c48a8fa0b9f2027d987dd9b5b on drapergeek:jd-headers into 0ae8a0f04416138ba9137fa66a695c48ef20fb8e on parroty:master.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.1%) to 93.431% when pulling 33b7f1bd90f635108a234297743460541036f0ea on drapergeek:jd-headers into 0ae8a0f04416138ba9137fa66a695c48ef20fb8e on parroty:master.

drapergeek commented 8 years ago

Thanks for merging!

Wish I squashed the commits before submitting 😞