Updating parts of a resource on the server
This note provides supplementary information about the server's implementation of the standard HTTP PATCH method, used to replace portions of a resource.
PATCH method is used by interactive AJAX calls to request the server to update portions of an existing resource.
A software developer must write a custom module with a handler to carry out the request (presumably via some type of server database), and the webmaster must configure a dynamic route with
*methods=PATCH which references that module.
The server's request/response cycle for
PATCH requests is fulfilled using this sequence of handlers:
|1||Server Name Indication||no||no|
|10||Content Decoding (Patch)||no||no|
Successful responses are finalized by the dynamic module with any of these status codes:
200"OK" when the response contains a payload and these response headers:
204"No Content" when the response has no payload.
303"See Other" when the processing is successful and the browser should issue a follow-on
GETrequest to the URI declared in the response's
307"Temporary Redirect" when the processing is successful and the browser should issue a follow-on
PATCHrequest to the URI declared in the response's
For reference purposes, refer to IETF RFC 5789 PATCH Method for HTTP for the basic protocol expected of