accept

val accept: List<String>? = null

If set, it defines which media-types the client is able to understand depending on the context where the request is done. If the ResourceProvider has multiple resources available for the same path, it should return a resource compatible with any of the media-type values.

If not defined or an empty list, any media-type is accepted.

ResourceProvider implementations may ignore this option if it does not know about media-types. ResourceProvider implementations may also ignore this option if it does not know about alternate resources.

The values specified for this option must be compatible with the HTTP Accept header. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept