Re: [whatwg/fetch] [WIP] Request domintro box (#617)

domfarolino commented on this pull request.



> + <dd>Returns <var>request</var>'s HTTP method, which is "<code>GET</code>" by default.
+
+ <dt><code><var>request</var> . <a attribute for=Request>url</a></code>
+ <dd>Returns the URL of <var>request</var> as a string.
+
+ <dt><code><var>request</var> . <a attribute for=Request>headers</a></code>
+ <dd>Returns a {{Headers}} object consisting of the headers associated with <var>request</var>.
+
+ <dt><code><var>request</var> . <a attribute for=Request>destination</a></code>
+ <dd>Returns the kind of resource requested by <var>request</var>, e.g. "<code>document</code>",
+ or "<code>script</code>".
+
+ <dt><code><var>request</var> . <a attribute for=Request>referrer</a></code>
+ <dd>Returns the referrer of <var>request</var>. Its value can be a same origin URL if explicitly
+ set in <var>init</var>, the empty string to indicate no referrer, and "<code>about:client</code>"
+ when defaulting to the document's <a for=Document>URL</a>. This is used during fetching to

Ok that works. If in a worker, is the condition in [determine request's referrer](https://w3c.github.io/webappsec-referrer-policy/#determine-requests-referrer) "client" > step 1 not met? (thus defaulting to the creation URL?)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/617#discussion_r144835736

Received on Monday, 16 October 2017 12:45:45 UTC