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

Specify the media type expected by the server #1

Open
ghost opened this issue Feb 6, 2014 · 0 comments
Open

Specify the media type expected by the server #1

ghost opened this issue Feb 6, 2014 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 6, 2014

How would you specify the media type accepted by the server for a particular form?
Two possibilities I can think of:

  • mimic HTML and use an enctype field
  • mirror content negotiation and use an accept field. In this case that would mean what the server accepts as the body of the request.

While the latter seems more elegant, it might be confusing. Using the familiar enctype name might be more pragmatic.

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

No branches or pull requests

0 participants