ipld / edelweiss

Decentralized Protocol Compiler
Other
16 stars 6 forks source link

add cachable modifier to methods #48

Closed petar closed 2 years ago

petar commented 2 years ago

Addresses https://github.com/ipfs/specs/issues/282 and https://github.com/ipfs/specs/pull/287.

[x] add cachable modifier to method definitions [x] use GET for cachable methods, POST for others [x] servers deny GET requests for non-cachable methods [x] servers generate ETag for cachable methods [x] servers support If-None-Match for cachable methods

petar commented 2 years ago

@guseggert FYI, whenever you are done with deployment to production, we should get back to this PR and merge it. This one implements the latest Reframe spec involving ETags.

guseggert commented 2 years ago

Rebased. Tests in go-delegated-routing aren't working with this yet, so need to resolve that.

guseggert commented 2 years ago

Okay I fixed up the tests in go-delegated-routing and this all looks okay.