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

Have an "allows-headers" field #7

Open
krainboltgreene opened this issue Aug 13, 2018 · 1 comment
Open

Have an "allows-headers" field #7

krainboltgreene opened this issue Aug 13, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@krainboltgreene
Copy link
Owner

This would tell the client what headers they allow:

{
  "allows-headers": {
    "Accept": ["application/json", "application/vnd.api+json", "*/*"],
    "Content-Type": ["application/vnd.api+json"],
    "Authorization": [null, "Bearer"]
  }
}
@krainboltgreene
Copy link
Owner Author

Values: String|Array<String>|Map<String, String|Array<String>>

For example the Content-Type header has "options":

"Content-Type": {
  "application/vnd.api+json": {
    "charset": "utf-8"
  }
}

Which would match:

Content-Type: application/vnd.api+json; charset=utf-8

@krainboltgreene krainboltgreene added the enhancement New feature or request label Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant