-
-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_recorder - matching http headers as well as URL #639
Comments
fully legit request I am working on the framework to record matchers as well just to be sure, you are looking for matching request header as per https://github.com/getsentry/responses#request-headers-validation ? |
Yes I think so (although I haven't actually done it like that using this library as I have just been using the recorded files up until now). I'm pretty sure I would want to do something like:
|
Gotcha Unfortunately, I cannot commit to any timeline, since it is pretty hard to accommodate all the matchers for the recorder. Need to think about some nice API that could be extended and that provides all the functionality for recording into file |
I know you can't commit to a timeline, (and I'm not trying to rush you), but would you be able to give some indication of whether it's likely to be weeks or months or longer? I need to decide whether I am going to wait or try some other workaround / look for another solution in the meantime. |
in the best case by end of June PS |
For my project, I need to mock responses from an API where some of the parameters are included in a HTTP header, so for example I would make a request to
http://api.com/projects
with a http header set touser-id: joebloggs
Currently I am recording the responses by doing:
and then I'm loading the yaml file like this:
Is it possible to set up the registry to match on this HTTP header, and also save this header in the .yaml files that it generates?
The text was updated successfully, but these errors were encountered: