HTTP 415 ("Unsupported Media Type") tells us when a server doesn't support a media type, but how can a client query what media types a server supports (for the request body)?
In other words, I'm looking for the server equivalent of an Accept header. While it’s possible to provide this information beyond the scope of the HTTP specification, I specifically seek an answer from within the HTTP specification itself.
If no mechanism exists, does that mean that adding support for a new server requires human intervention every time?
Answering my own question... It turns out that as of RFC9110 the
Acceptheader now works in both directions (!!)