duraspace / lambdora

Fedora Repository API implemented with AWS Lambda, API Gateway and DynamoDB
Apache License 2.0
9 stars 3 forks source link

HEAD Response headers #43

Open awoods opened 7 years ago

awoods commented 7 years ago

After creating a simple (Basic) container, the response to a HEAD request should minimally include the following headers, with appropriate values:

curl -I [existing-fedora-container]

HTTP/1.1 200 OK
Date: Tue, 31 Oct 2017 16:52:24 GMT
ETag: W/"37a00c700a43fd89916075f198b9d60a90f2630e"
Last-Modified: Tue, 31 Oct 2017 16:52:24 GMT
Link: <http://www.w3.org/ns/ldp#Resource>;rel="type"
Link: <http://www.w3.org/ns/ldp#Container>;rel="type"
Link: <http://www.w3.org/ns/ldp#BasicContainer>;rel="type"
Accept-Patch: application/sparql-update
Accept-Post: text/turtle,text/rdf+n3,text/n3,application/rdf+xml,application/n-triples,application/ld+json,multipart/form-data,application/sparql-update
Allow: MOVE,COPY,DELETE,POST,HEAD,GET,PUT,PATCH,OPTIONS
Content-Type: text/turtle;charset=utf-8