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.63k stars 196 forks source link

What does is_system_block_ok mean? #41

Closed xpe closed 9 years ago

xpe commented 9 years ago

https://github.com/for-GET/http-decision-diagram/blob/master/doc/README_system.md

andreineculau commented 9 years ago

similarly to is_request_block_ok, this question can wrap any check that is missed by the diagram.

e.g. if is_method_allowed was not in the diagram, but you would need that check, the least you could do is to do that check there, although it would have been rather "late", and you'd have wasted some cpu cycles

Please reopen issue if still not clear.

NOTE: this is in contrast say with how people use webmachine's callbacks: if a check is not done, then you would hijack the is_authorized and answer two questions at once. Now that the diagram has a programatic version (Cosmogol + JSON), I think extensibility should be covered by modifying the diagram and thus adjusting the flow to your needs. That said, this check doesn't hurt to be in there by default.