QUTlib / rest-rmr

A RESTful RMR framework
Apache License 2.0
4 stars 1 forks source link

ETag support #2

Closed phluid61 closed 11 years ago

phluid61 commented 11 years ago

Add support for ETag HTTP headers (including If-None-Match).

phluid61 commented 11 years ago

This will require a lot of design and discussion, especially regarding non-safe and non-idempotent methods.

phluid61 commented 11 years ago

Have added basic ETag support for caching via If-None-Match requests. Use Response#etag and Response#is_modified

phluid61 commented 11 years ago

Closing this issue. The current ETag support (creation of strong & weak etags, setting ETag header, handling If-None-Match header for GET/HEAD requests, ability to access preconditional headers) is sufficient.

It is up to specific resources (and models, and representers) to appropriately handle precondition headers and conditional execution of methods.