Skip to content

Specify the media type expected by the server #1

Description

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions