for-GET / http-decision-diagram

An activity diagram to describe the resolution of HTTP response status codes, given various headers.
https://github.com/for-GET/http-decision-diagram/blob/master/doc/2013-06-10-http-hell-no.md
Apache License 2.0
3.61k stars 196 forks source link

missing_has_precondition #54

Closed declaresub closed 6 years ago

declaresub commented 6 years ago

What should missing_has_precondition be checking? There's no documentation for it yet, and no implementation in for-GET/machine.

andreineculau commented 6 years ago

Apologies for the late reply, I probably mark as read the notification email and saw the github notification only now.

This hook should look for a "precondition header" = If-* header like If-Match. If there is one, since we're on the "resource is missing" branch, we fail early with 412.