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

Prefer supports select specific example #21

Closed
wants to merge 2 commits into from

Conversation

wcpan
Copy link

@wcpan wcpan commented Feb 18, 2019

Make Prefer header supports selection for specific example

e.g.
curl -H "Prefer: status=200&example=success1" http://localhost:8000/users

…, use random result from examples

e.g.
curl -H "Prefer: status=200&example=success1" http://localhost:8000/users
@wcpan
Copy link
Author

wcpan commented Feb 19, 2019

found a bug, close this PR.

@wcpan wcpan closed this Feb 19, 2019
@wcpan wcpan reopened this Feb 19, 2019
@danielgtaylor
Copy link
Owner

This is a great idea! One comment though: I think the HTTP Prefer Header has a slightly different format. Would you be willing up update to the official format?

@dsolonenko
Copy link

@wcpan great idea, exactly what I was looking for. Can you please update the PR?

@samit4me
Copy link

samit4me commented Sep 3, 2019

Any updates on this? This would be amazing.

@danielgtaylor
Copy link
Owner

Closing as I believe this is superseded by #55

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

Successfully merging this pull request may close these issues.

None yet

4 participants