Closed eroux closed 6 years ago
I think in this case we should have the list of alternates as in #63 but also the TCN
header set to list
(if I look at the examples of rfc2295)
Implemented as of commit 2b33cc2
To be tested with:
curl -v http://localhost:8080/resource/P88 -H "Accept:"
and
curl -v -X POST http://localhost:8080/resource/P88 -H "Accept:"
This doesn't answer any real life problem I think, but it may be helpful to implement in order to have a nice demo:
When a user would go to
http://purl.bdrc.io/resource/XXX
with noAccept
header, a http 300 code should be returned with the list of rdf serializations and the link to the html page. I think this example is ok...Note that because browser ask for html, this won't affect regular users.