Skip to content
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

Header verification #439

Open
mfeckie opened this issue Mar 25, 2021 · 0 comments
Open

Header verification #439

mfeckie opened this issue Mar 25, 2021 · 0 comments

Comments

@mfeckie
Copy link

mfeckie commented Mar 25, 2021

I've been looking through the codebase looking for a way to have the mocked API endpoints check request headers. I can't see an obvious way to do it. Is there an obvious way I'm missing or would it require some work to add such a feature?

For example, have the mocked endpoint respond if a content-type: application/json header was present, but fail if it was content-type: text/html or similar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant