Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Adopt a statemachine-like request model #3

Open
ghost opened this issue Sep 1, 2016 · 1 comment
Open

Adopt a statemachine-like request model #3

ghost opened this issue Sep 1, 2016 · 1 comment
Labels
kind/enhancement A net-new feature or an improvement to an existing feature

Comments

@ghost
Copy link

ghost commented Sep 1, 2016

Webmachine has been pioneered in CouchDB and its goal is to encode most of HTTP's logic in a finite statemachine (FSM).

webmachine fsm

The gateway would be a resource, implementing decision functions for a few of webmachine's states. An inofficial and very old Go implementation exists at https://github.com/pomack/webmachine.go. I used to work on the official Ruby implementation, and example resouce code is here: https://github.com/webmachine/webmachine-ruby/blob/master/documentation/examples.md

I think webmachine is a very sane model of HTTP resources, and will make it a lot easier for us to specify, develop, and reason about the IPFS gateway.

@ghost
Copy link
Author

ghost commented Sep 2, 2016

ping @Kubuxu just because you're not watching this repo yet :]

@ghost ghost added the kind/enhancement A net-new feature or an improvement to an existing feature label Nov 4, 2016
@momack2 momack2 added this to Inbox in ipfs/go-ipfs May 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement A net-new feature or an improvement to an existing feature
Projects
No open projects
Development

No branches or pull requests

0 participants