Skip to content

Commit

Permalink
Address various Request domintro nits
Browse files Browse the repository at this point in the history
  • Loading branch information
domfarolino authored and annevk committed Oct 25, 2017
1 parent 978cf9a commit e5abf0f
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4858,11 +4858,10 @@ initially a new {{AbortSignal}} object.
<dl class=domintro>
<dt><code><var>request</var> = new <a constructor lt="Request()">Request</a>(<var>input</var> [,
<var>init</var>])</code>
<dd>Returns a new <var>request</var> whose <a attribute for=Request>url</a> attribute value is
<var>input</var> if <var>input</var> is a string, and <var>input</var>'s
<a attribute for=Request>url</a> if <var>input</var> is a {{Request}} object. The optional
<var>init</var> argument allows for setting attributes appearing in {{RequestInit}} via object
members of the same name.
<dd>Returns a new <var>request</var> whose {{Request/url}} property is <var>input</var> if
<var>input</var> is a string, and <var>input</var>'s {{Request/url}} if <var>input</var> is a
{{Request}} object. The optional <var>init</var> argument allows for setting attributes
appearing in {{RequestInit}} via object members of the same name.

<dt><code><var>request</var> . <a attribute for=Request>method</a></code>
<dd>Returns <var>request</var>'s HTTP method, which is "<code>GET</code>" by default.
Expand All @@ -4880,36 +4879,37 @@ initially a new {{AbortSignal}} object.
"<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 global's default. This is used during fetching to determine the value of
the "<code>Referer</code>" header of the request being made.
<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 global's default. This is used during
fetching to determine the value of the `<code>Referer</code>` header of the request being made.

<dt><code><var>request</var> . <a attribute for=Request>referrerPolicy</a></code>
<dd>Returns the referrer policy associated with <var>request</var>. This is used during
fetching to compute the value of the <var>request</var>'s referrer.

<dt><code><var>request</var> . <a attribute for=Request>mode</a></code>
<dd>Returns the mode associated with <var>request</var>, which is a string indicating whether
<dd>Returns the <a>mode</a> associated with <var>request</var>, which is a string indicating whether
or not the request will use CORS, or will be restricted to same-origin URLs.

<dt><code><var>request</var> . <a attribute for=Request>credentials</a></code>
<dd>Returns the credentials mode associated with <var>request</var>, which is a string
<dd>Returns the <a>credentials mode</a> associated with <var>request</var>, which is a string
indicating whether or not credentials will be sent with the request always, never, or only when
sent to a same-origin URL.

<dt><code><var>request</var> . <a attribute for=Request>cache</a></code>
<dd>Returns the cache mode associated with <var>request</var>, which is a string indicating
<dd>Returns the <a>cache mode</a> associated with <var>request</var>, which is a string indicating
how the the request will interact with the browser's cache when fetching.

<dt><code><var>request</var> . <a attribute for=Request>redirect</a></code>
<dd>Returns the redirect mode associated with <var>request</var>, which is a string indicating
how redirects for the request will be handled during fetching. A <a>request</a> will follow
redirects by default.
<dd>Returns the <a>redirect mode</a> associated with <var>request</var>, which is a string
indicating how redirects for the request will be handled during fetching. A <a>request</a>
will follow redirects by default.

<dt><code><var>request</var> . <a attribute for=Request>integrity</a></code>
<dd>Returns <var>request</var>'s subresource integrity, which is a cryptographic hash of the
<dd>Returns <var>request</var>'s subresource integrity metadata, which is a cryptographic hash of the
resource being fetched. Its value may consist of multiple hashes separated by whitespace.
[[SRI]]

<dt><code><var>request</var> . <a attribute for=Request>keepalive</a></code>
<dd>Returns a boolean indicating whether or not <var>request</var> can outlive the global in which
Expand Down

0 comments on commit e5abf0f

Please sign in to comment.