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

HTTP headers in links as dictionary of arrays to support multiple values #435

Open
emmanuelmathot opened this issue Sep 27, 2023 · 1 comment
Milestone

Comments

@emmanuelmathot
Copy link
Collaborator

HTTP 9110 RFC states:

HTTP uses "fields" to provide data in the form of extensible name/value pairs with a registered key namespace. Fields are sent and received within the header and trailer sections of messages ([Section 6](https://www.rfc-editor.org/rfc/rfc9110.html#message.abstraction)).

In order to avoid ambiguity in the field values that are sent, the headers object in a link object should be specified as a dictionary of string arrays Map<string, [string]>

https://stackoverflow.com/questions/3096888/standard-for-adding-multiple-values-of-a-single-http-header-to-a-request-or-resp

@m-mohr
Copy link
Collaborator

m-mohr commented Jul 4, 2024

We should align with STAC spec and aim for the advanced use cases, so I propose:

body to allow any data type
headers to allow Map<string, string | [string]> (an array results in multiple headers)

@m-mohr m-mohr added this to the 1.0.1 milestone Jul 4, 2024
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