Skip to content

Model accept as the HTTP accept header #116

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

Open
iherman opened this issue Jan 31, 2025 · 1 comment
Open

Model accept as the HTTP accept header #116

iherman opened this issue Jan 31, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@iherman
Copy link
Member

iherman commented Jan 31, 2025

Just wondering... would it be possible, for the sake of conceptual compatibility, to model the accept properties (both of DID and for DID URL) after the HTTP Accept header syntax (see, e.g., MDN). I.e., the caller may accept several media types, possibly with priorities. (My reading of the current text is that, at the moment, a single media type can be used.)

@peacekeeper
Copy link
Collaborator

You're right, at the moment the accept option can only contain a single media type, but I don't remember why we made it like this. I think what you suggest makes sense to me, happy to support this change..

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

2 participants