4 ms·
A PUT is already well-defined, and more importantly, idempotent. Adding PATCH-like behavior would not be repeatable, and would break every HTTP server, client,
by psadauskas 17y ago
A PUT is already well-defined, and more importantly, idempotent. Adding PATCH-like behavior would not be repeatable, and would break every HTTP server, client, and proxy out there.
- jluxenberg 17y agoPATCH, like PUT, can be used in an idempotent manner using the "If-Matches" header. If the content being PATCHed matches a given ETag, then the path will be applied, otherwise the path will not be applied and a 412 Precondition Failed should be returned.