Open In App

HTTP headers | Accept-Patch

Improve
Improve
Like Article
Like
Save
Share
Report

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:

  • The example shows a server that supports patch generally using two based patch document formats
    Accept-Patch: application/example, text/example
  • This example shows a server the supported format with the setting of HTTP-charset parameter.
    Accept-Patch: text/example;charset=utf-8

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:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

Last Updated : 31 Oct, 2019
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads