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

Add prefer header #747

Closed
calebmer opened this issue Mar 22, 2016 · 3 comments
Closed

Add prefer header #747

calebmer opened this issue Mar 22, 2016 · 3 comments

Comments

@calebmer
Copy link
Contributor

I'd like to use the Prefer header, could types for this header be added?

@seanmonstar
Copy link
Member

This is the first I've heard of this header. Is there a situation where its usage is common?

@calebmer
Copy link
Contributor Author

If you look at the PostgREST project you'll see it's being used to suppress counts and in a few other cases. The spec also gives some interesting examples. For my usage I'd like to explore the header for styling a response. For example: Prefer: case=camel or Prefer: envelope.

To me, the Prefer header represents the configuration of some niche behaviors.

@calebmer
Copy link
Contributor Author

Basically it's an optional Expect.

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

2 participants