Apr
13th
Mon
13th
RackDAV needs some information about the resources, so you have to implement following methods: children: If this is a collection, return the child resources. collection?: Is this resource a collection? exist?: Does this recource exist? creation_date: Return the creation time. last_modified: Return the time of last modification. last_modified=(time): Set the time of last modification. etag: Return an Etag, an unique hash value for this resource. content_type: Return the mime type of this resource. content_length: Return the size in bytes for this resource. Most importantly you have to implement the actions, which are called to retrieve and change the resources: get(request, response): Write the content of the resource to the response.body. put(request, response): Save the content of the request.body. post(request, response): Usually forbidden. delete: Delete this resource. copy(dest): Copy this resource to given destination resource. move(dest): Move this resource to given destination resource. make_collection: Create this resource as collection.