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

Add XState version ❤️ #61

Open andreineculau opened 2 years ago

andreineculau commented 2 years ago

When we revived HTTP Decision Diagram in 2013, the best way to draw this was Omnigraffle. Then we moved over to Cosmogol/JSON and SVG versions.

A decade later, there's XState and XState can serve not only for visualization but also for implementation.

Not many know that HTTP Decision Diagram is part of a higher goal of automating the entire request-response flow, from automatic parsing of headers strictly based on their ABNF grammars, via the decision diagram, and down to the core logic of content negotiation and caching and handling conditionals etc. A decade ago, that has been implemented as a proof of concept via Machina (FSM), but why not piff it up with XState.

This is not just about shiny new stuff, but also hope that the tooling around XState will make it easier for others to understand, visualize and ultimately contribute to a key element of HTTP in specific and APIs in general 🚀

Online references: