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.
Accept-Patch: media types
Directives: There are no directives for Accept-Patch, just need to specify the supported format for the server.
- 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.
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
- HTTP headers | Access-Control-Expose-Headers
- HTTP headers | Access-Control-Allow-Headers.
- HTTP headers | Access-Control-Request-Headers
- HTTP headers | Location
- HTTP headers | User-Agent
- HTTP headers | Link
- HTTP headers | Save-Data
- HTTP headers | Content-Type
- HTTP headers | X-Forwarded-Proto
- HTTP headers | X-XSS-Protection
- HTTP headers | X-Frame-Options
- HTTP headers | Last-Modified
- HTTP headers | Date
- HTTP headers | Cookie
- HTTP headers | Strict-Transport-Security
- HTTP headers | Expect
- HTTP headers | Accept-Encoding
- HTTP headers | Proxy-Authenticate
- HTTP headers | Content-Range
- HTTP headers | Content-Encoding
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.