-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is Patches: OK
for?
#67
Comments
Seems it is a way for the server to confirm to the client that it understood the response and knew how to process the response. As just a Somewhat akin to how if a server doesn't know about braid, it shouldn't be using the
|
That said, they could probably just respond with the version or parents header that was sent, as a confirmation. Also, what occurs here if the patch was not okay? Like the conflict resolver algorithm failed to merge it, or it threw an exception. Shall there be a
|
Two more things:
These two requests are identical in semantics. I think it would help to make this clear in the spec. We could say explicitly that "HTTP already allows a single patch in a request body, but the |
If the intent is to tell clients information about allowed HTTP methods, this information might be better off added to an |
Also I think this issue is inverted. The issue should be "I propose adding Our default action should be to remove the header, unless that case can be sustained with good justification. |
Moving forward:
|
I've been looking into this, and now I believe the This is necessary to prevent data loss, when a client tries to submit a range-patch as a PUT with a |
PR is implemented in #119. |
I noticed that the example HTTP responses have a
Patches: OK
header, but these aren't actually discussed in the spec. What are these for? We should either explain them, or remove them from the examples.Here's an example: https://github.com/braid-work/braid-spec/blob/master/draft-toomim-httpbis-braid-http-03.txt#L253
The text was updated successfully, but these errors were encountered: