Open In App

HTTP headers | Accept-Patch

The Patch is used for making partial changes to an existing resource. The Accept-Patch HTTP header is a response HTTP header that specifies the patch document is supported or not and also the media type that the server is able to understand. The presence of a specific patch document format in this header indicates that the specific format is allowed on the resource. ‘415 Unsupported Media Type’ is replied with if the media is not supported. So basically this header specifies that which patch document formats this server supports is the main work.

Syntax:



Accept-Patch: media types

Directives: There are no directives for Accept-Patch, just need to specify the supported format for the server.

Examples:



To check this Accept-Patch in action go to Inspect Element -> Network check the response header for Accept-Patch like below.


Supported Browsers: The browsers compatible with HTTP Accept-Patch header are listed below:

Article Tags :