Skip to content

Commit 5e200d5

Browse files
authored
Issue #181 - Redefine network request in terms of Fetch (#182)
1 parent cff5782 commit 5e200d5

File tree

1 file changed

+26
-37
lines changed

1 file changed

+26
-37
lines changed

index.html

Lines changed: 26 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
github: "https://github.com/w3c/network-error-logging/",
1313
shortname: "network-error-logging",
1414
specStatus: "ED",
15-
xref: ["network-reporting", "fetch", "hr-time", "html", "referrer-policy", "reporting", "resource-timing", "secure-contexts", "url"],
15+
xref: ["network-reporting", "fetch", "hr-time", "html", "infra", "mixed-content", "referrer-policy", "reporting", "resource-timing", "secure-contexts", "url"],
1616
editors: [{
1717
name: "Douglas Creager",
1818
url: "https://dcreager.net/",
@@ -117,32 +117,20 @@ <h2>Network requests</h2>
117117

118118
<p>
119119
A <dfn data-lt="network requests">network request</dfn> occurs when the
120-
user agent must use the network to service a single
121-
<dfn data-cite="RFC9110#core.semantics">request</dfn>.
120+
[=user agent=] attempts to <a data-cite="fetch#http-network-fetch">HTTP-network fetch</a>
121+
a resource over the network for a given [=request=].
122122
</p>
123123

124124
<p>
125-
If the user agent can service a <a>request</a> out of a local
126-
cache, that <a>request</a> MUST NOT result in a <a>network
127-
request</a>.
125+
A [=request=] MUST NOT result in a <a>network request</a> if the user
126+
agent is known to be offline (i.e., when <code>navigator.</code>
127+
{{NavigatorOnLine/onLine}} returns <code>false</code>).
128128
</p>
129129

130130
<p>
131-
If the user agent follows [=redirect status|redirects=] as part of a [=navigate|navigation=],
132-
there MUST be separate <a>network requests</a> for each <a>request</a> in
133-
the redirect chain.
134-
</p>
135-
136-
<p>
137-
A <a>request</a> MUST NOT result in a <a>network request</a> if the user
138-
agent is known to be offline (i.e., when <code>navigator.</code>{{NavigatorOnLine/onLine}} returns
139-
<code>false</code>).
140-
</p>
141-
142-
<p>
143-
A <a>request</a> MUST NOT result in a <a>network request</a> if it is
144-
blocked due to mixed content or CORS failures. Any <a>CORS-preflight
145-
request</a> MUST result in its own <a>network request</a>.
131+
A [=request=] MUST NOT result in a <a>network request</a> if it is
132+
blocked due to [=mixed content=] or [=CORS protocol|CORS=] failures. Any
133+
[=CORS-preflight request=] MUST result in its own <a>network request</a>.
146134
</p>
147135

148136
<p class="note">
@@ -160,9 +148,9 @@ <h2>Network requests</h2>
160148
<ol>
161149
<li>
162150
<dfn>DNS resolution</dfn>: The user agent uses the Domain Name System
163-
[[RFC1034]] to resolve a domain name into an IP address of a
151+
[[RFC1034]] to resolve a domain name into an [=IP address=] of a
164152
<dfn data-cite="RFC9110#core.semantics">server</dfn> can that service
165-
HTTP requests to that domain.
153+
HTTP [=requests=] to that domain.
166154
</li>
167155

168156
<li>
@@ -173,8 +161,8 @@ <h2>Network requests</h2>
173161

174162
<li>
175163
<dfn>Transmission of request and response</dfn>: Once the secure
176-
channel is established, the user agent can transmit the HTTP request,
177-
and receive the response from the <a>server</a>.
164+
channel is established, the user agent can transmit the HTTP
165+
[=request=], and receive the [=response=] from the <a>server</a>.
178166
</li>
179167
</ol>
180168

@@ -186,8 +174,8 @@ <h2>Network requests</h2>
186174
to the same domain. Similarly, HTTP
187175
<a data-cite="RFC9112#persistent.connections">persistent connections</a>
188176
allow open connections to be shared for multiple requests to the same
189-
<a>origin</a>. However, if multiple <a>phases</a> occur, they will occur
190-
in the above order.
177+
[=network partition key=]. However, if multiple <a>phases</a> occur, they
178+
will occur in the above order.
191179
</p>
192180

193181
<p class="ednote">
@@ -298,8 +286,8 @@ <h2>NEL policies</h2>
298286

299287
<p>
300288
Each <a>NEL policy</a> has a <dfn>received IP address</dfn>, which is the
301-
IP address of the <a>server</a> that the user agent received this <a>NEL
302-
policy</a> from.
289+
[=IP address=] of the <a>server</a> that the user agent received this
290+
<a>NEL policy</a> from.
303291
</p>
304292

305293
<p>
@@ -412,7 +400,7 @@ <h2><code>NEL</code> response header</h2>
412400
<p>
413401
The <dfn><code>NEL</code></dfn> <a>response header</a> is used to
414402
communicate an <a>origin</a>'s <a>NEL policy</a> to the user agent. The
415-
ABNF (Augmented Backus-Naur Form) syntax for the <a>NEL</a> header is as
403+
ABNF (Augmented Backus-Naur Form) [[RFC5234]] syntax for the <a>NEL</a> header is as
416404
follows:
417405
</p>
418406

@@ -591,7 +579,8 @@ <h2>Process policy headers</h2>
591579

592580
<li>
593581
Let <var>key</var> be the result of calling <a>determine the network
594-
partition key</a>, given <var>request</var>.
582+
partition key</a>, given <var>request</var>'s
583+
[=request/reserved client=].
595584
</li>
596585

597586
<li>
@@ -660,7 +649,7 @@ <h2>Process policy headers</h2>
660649
<dl>
661650
<dt><a>received IP address</a></dt>
662651
<dd>
663-
the IP address of the <a>server</a> that the user agent received
652+
the [=IP address=] of the <a>server</a> that the user agent received
664653
<var>response</var> from
665654

666655
<p class="ednote">
@@ -742,7 +731,8 @@ <h2>Choose a policy for a request</h2>
742731

743732
<li>
744733
Let <var>key</var> be the result of calling <a>determine the network
745-
partition key</a>, given <var>request</var>.
734+
partition key</a>, given <var>request</var>'s'
735+
[=request/reserved client=].
746736
</li>
747737

748738
<li>
@@ -814,10 +804,9 @@ <h2>Extract request headers</h2>
814804

815805
<li>
816806
For each <var>header</var> in <var>request</var>'s
817-
[=request/header list=] whose <a
818-
data-lt="header name">name</a> is <var>header name</var>, append
819-
<var>header</var>'s <a data-lt="header value">value</a> to
820-
<var>values</var>.
807+
[=request/header list=] whose <a data-lt="header name">name</a>
808+
is <var>header name</var>, append <var>header</var>'s
809+
<a data-lt="header value">value</a> to <var>values</var>.
821810
</li>
822811

823812
<li>

0 commit comments

Comments
 (0)