Skip to content

Commit ad40f03

Browse files
authored
Editorial: modernize connection prose
1 parent b6c6283 commit ad40f03

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

fetch.bs

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2194,10 +2194,11 @@ unset or <a for=request>keepalive</a> is false, <a lt=terminated for=fetch>termi
21942194
<h3 id=connections>Connections</h3>
21952195

21962196
<p>A user agent has an associated <dfn export id=concept-connection-pool>connection pool</dfn>. A
2197-
<a>connection pool</a> consists of zero or more
2197+
<a>connection pool</a> is an <a for=/>ordered set</a> of zero or more
21982198
<dfn lt=connection export id=concept-connection>connections</dfn>. Each <a>connection</a> is
2199-
identified by a <b>key</b> (a <a>network partition key</a>), an <b>origin</b> (an
2200-
<a for=/>origin</a>), and <b>credentials</b> (a boolean).
2199+
identified by an associated <dfn for=connection>key</dfn> (a <a>network partition key</a>),
2200+
<dfn for=connection>origin</dfn> (an <a for=/>origin</a>), and <dfn for=connection>credentials</dfn>
2201+
(a boolean).
22012202

22022203
<p>Each <a>connection</a> has an associated
22032204
<dfn for=connection id=concept-connection-timing-info>timing info</dfn> (a
@@ -2259,11 +2260,12 @@ steps:
22592260

22602261
<hr>
22612262

2262-
<p>To <dfn export id=concept-connection-obtain>obtain a connection</dfn>, given a <var>key</var>,
2263-
<var>origin</var>, <var>credentials</var>, an optional boolean <var>forceNew</var> (default false),
2264-
an optional boolean <dfn export for="obtain a connection"><var>http3Only</var></dfn> (default
2265-
false), and an optional boolean <dfn export for="obtain a connection"><var>dedicated</var></dfn>
2266-
(default false), run these steps:
2263+
<p>To <dfn export id=concept-connection-obtain>obtain a connection</dfn>, given a
2264+
<a>network partition key</a> <var>key</var>, <a for=/>origin</a>, <var>origin</var>, boolean
2265+
<var>credentials</var>, an optional boolean <var>forceNew</var> (default false), an optional boolean
2266+
<dfn export for="obtain a connection"><var>http3Only</var></dfn> (default false), and an optional
2267+
boolean <dfn export for="obtain a connection"><var>dedicated</var></dfn> (default false), run these
2268+
steps:
22672269
<!-- http3Only and dedicated have been added for WebTransport -->
22682270

22692271
<ol>
@@ -2272,8 +2274,9 @@ false), and an optional boolean <dfn export for="obtain a connection"><var>dedic
22722274

22732275
<ol>
22742276
<li><p>Let <var>connections</var> be a set of <a>connections</a> in the user agent's
2275-
<a>connection pool</a> each of whose <b>key</b> is <var>key</var>, <b>origin</b> is
2276-
<var>origin</var>, and <b>credentials</b> is <var>credentials</var>.
2277+
<a>connection pool</a> whose <a for=connection>key</a> is <var>key</var>,
2278+
<a for=connection>origin</a> is <var>origin</var>, and <a for=connection>credentials</a> is
2279+
<var>credentials</var>.
22772280

22782281
<li><p>If <var>connections</var> is not empty and <var>http3Only</var> is false, then return
22792282
one of <var>connections</var>.
@@ -2289,7 +2292,9 @@ false), and an optional boolean <dfn export for="obtain a connection"><var>dedic
22892292

22902293
<ol>
22912294
<li>
2292-
<p>Set <var>connection</var> to a new <a for=/>connection</a>.
2295+
<p>Set <var>connection</var> to a new <a for=/>connection</a> whose <a for=connection>key</a> is
2296+
<var>key</var>, <a for=connection>origin</a> is <var>origin</var>, and
2297+
<a for=connection>credentials</a> is <var>credentials</var>.
22932298
<a for=/>Record connection timing info</a> given <var>connection</var> and use
22942299
<var>connection</var> to establish an HTTP connection to <var>origin</var>.
22952300
[[!HTTP]] [[!HTTP-SEMANTICS]] [[!HTTP-COND]] [[!HTTP-CACHING]] [[!HTTP-AUTH]] [[!TLS]]
@@ -2315,9 +2320,8 @@ false), and an optional boolean <dfn export for="obtain a connection"><var>dedic
23152320
<li><p>Return failure.
23162321
</ol>
23172322

2318-
<li><p>If <var>dedicated</var> is false, then add <var>connection</var> to the user agent's
2319-
<a>connection pool</a> with <b>key</b> being <var>key</var>, <b>origin</b> being <var>origin</var>,
2320-
and <b>credentials</b> being <var>credentials</var>.
2323+
<li><p>If <var>dedicated</var> is false, then <a for=set>append</a> <var>connection</var> to the
2324+
user agent's <a>connection pool</a>.
23212325

23222326
<li><p>Return <var>connection</var>.
23232327
</ol>

0 commit comments

Comments
 (0)