Open ghost opened 8 years ago
Webmachine has been pioneered in CouchDB and its goal is to encode most of HTTP's logic in a finite statemachine (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.
ping @Kubuxu just because you're not watching this repo yet :]
Webmachine has been pioneered in CouchDB and its goal is to encode most of HTTP's logic in a finite statemachine (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.