Skip to content
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

Support custom decision graphs #48

Open
ordnungswidrig opened this issue Jun 7, 2013 · 0 comments
Open

Support custom decision graphs #48

ordnungswidrig opened this issue Jun 7, 2013 · 0 comments
Milestone

Comments

@ordnungswidrig
Copy link
Member

Extensions of the http spec, like webdav, introduce additional status codes and need support for custom decision graphs. Today, the decision graph is defined as a hardcoded set of functions calling each other in a well defined way. Injection of custom paths is very hard and error prone.

I suppose to change the decision graph execution model to support multiple graphs not defined as chain of functions in a namespace but as data. This can be a map:

{:service-available? (decision :service-available? :known-method? :handle-service-not-available?)}

where decisionexpands to a function that looks up the callback from the resource implementation and branches to known-method? or handle-service-not-available?

Liberator will provide default decision graphs for RFC2616 (what we have in 1.0) and RFC4918 for Webdav, e.g.

We should look into https://github.com/Prismatic/plumbing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant