Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify headers and response code for external content #351

Merged
merged 2 commits into from Apr 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions index.html
Expand Up @@ -640,6 +640,18 @@ <h3>External Binary Content</h3>
the request entity MUST reject request if it cannot guarantee all of the response headers required by the
<a>LDP-NR</a> interaction model in this specification.
</p>
<blockquote id="external-content-response-headers-example" class="informative">
Non-normative note: Example headers for a successful response to a <code>HEAD</code> request on external
content with <code>handling</code> of <code>redirect</code> (Below, <code>Link</code> headers are written on
separate lines for readability, but can also be listed as comma-separated values in a single header per
[[RFC8288]] <a href="https://tools.ietf.org/html/rfc8288#section-3">section 3</a>):
<pre>
Link: &lt;http://www.w3.org/ns/ldp#Resource&gt;;rel="type"
Link: &lt;http://www.w3.org/ns/ldp#NonRDFSource&gt;;rel="type"
Link: &lt;http://host/fcrepo/image/fcr:metadata&gt;; rel="describedby"
Content-Type: application/pdf
Location: http://example.org/document</pre>
</blockquote>
<section id='external-content-options'>
<h4>Advertising External Content Support</h4>
<p>
Expand Down Expand Up @@ -671,6 +683,11 @@ <h4>Redirected and Proxied External Content</h4>
<code>GET</code> and <code>HEAD</code> requests to any external <a>LDP-NR</a> MUST correctly
respond to the <code>Want-Digest</code> header defined in [[!RFC3230]].
</p>
<p id='external-content-redirect-status'>
A successful response to a <code>GET</code> and <code>HEAD</code> request for external content with
<code>handling</code> of <code>redirect</code> MUST have status code of either 302 (Found) or
307 (Temporary Redirect).
</p>
</section>
</section>
</section>
Expand Down