Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Link header in all responses to requests made to LDPRs #97

Open
fserena opened this issue Jul 10, 2014 · 2 comments
Open

Link header in all responses to requests made to LDPRs #97

fserena opened this issue Jul 10, 2014 · 2 comments

Comments

@fserena
Copy link
Contributor

fserena commented Jul 10, 2014

The specification says:

4.2.1.4 LDP servers exposing LDPRs must advertise their LDP support by exposing a HTTP Link header with a target URI of http://www.w3.org/ns/ldp#Resource, and a link relation type of type (that is, rel='type') in all responses to requests made to an LDPR's HTTP Request-URI [RFC5988].

As far as I've seen, basic tests that perform GET and/or OPTIONS methods are checking this header in the responses. But the same doesn't occur with the other methods (POST, PUT, ...), except for the NonRDFSource tests.

Is there any reason why this is so? (if I'm right)

@sspeiche
Copy link
Contributor

We have separate tests to verify this. I believe the testing methodology isn't to exhaustively test each request but focus on the conformance requirement being tested.

We could check ALL responses we receive from ALL requests everywhere in the test suite, perhaps that would be valuable. Seems a little heavy to me but we should be consistent.

@spadgett
Copy link
Contributor

We might add a test that cycles through the HTTP methods from Allow and checks the Link header in responses to each.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants