Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> https://httpwg.org/specs/rfc9110.html#field.accept (yes Accept can be used in responses)

I think that would solve.

HTTP servers SHOULD send one or more Accept: {content_type} HTTP headers in the HTTP Response to an HTTP OPTIONS Request in order to indicate which content types can be requested from that path.



IDK where that should be added though? Maybe REST and W3C LDP and similar

The OpenAPI docs could suggest same




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: