3.1. The Accept-Patch Header
3.1. The Accept-Patch Header
This specification introduces a new response header Accept-Patch used to specify the patch document formats accepted by the server. Accept-Patch SHOULD appear in the OPTIONS response for any resource that supports the use of the PATCH method. The presence of the Accept-Patch header in response to any method is an implicit indication that PATCH is allowed on the resource identified by the Request-URI. The presence of a specific patch document format in this header indicates that that specific format is allowed on the resource identified by the Request-URI.
Accept-Patch = "Accept-Patch" ":" 1#media-type
The Accept-Patch header specifies a comma-separated listing of media-types (with optional parameters) as defined by [RFC2616], Section 3.7.
Example:
Accept-Patch: text/example;charset=utf-8
The Accept-Patch header also appears in a 415 (Unsupported Media Type) response to indicate the patch document formats that are supported by the server, as described in Section 2.2.