You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<dfn export for="header list" lt="get, decode, and split|getting, decoding, and splitting" id=concept-header-list-get-decode-split>get, decode, and split</dfn>
663
665
a <a for=/>header name</a><var>name</var> from <a for=/>header list</a><var>list</var>, run these
664
-
steps:
666
+
steps. They return null or a <a for=/>list</a> of <a for=/>strings</a>.
667
+
<!-- "isomorphic" strings -->
665
668
666
669
<ol>
667
670
<li><p>Let <var>value</var> be the result of <a for="header list">getting</a><var>name</var> from
@@ -750,7 +753,9 @@ A: 3
750
753
<div algorithm>
751
754
<p>To
752
755
<dfn for="header value" lt="get, decode, and split|getting, decoding, and splitting">get, decode, and split</dfn>
753
-
a <a for=/>header value</a><var>value</var>, run these steps:
756
+
a <a for=/>header value</a><var>value</var>, run these steps. They return a <a for=/>list</a> of
757
+
<a for=/>strings</a>.
758
+
<!-- "isomorphic" strings -->
754
759
755
760
<ol>
756
761
<li><p>Let <var>input</var> be the result of <a>isomorphic decoding</a><var>value</var>.
@@ -815,7 +820,7 @@ directly. Use <a for="header list">get, decode, and split</a> instead.
815
820
816
821
<div algorithm>
817
822
<p>To <dfn export for="header list" id=concept-header-list-append>append</dfn> a <a for=/>header</a>
818
-
(<var>name</var>, <var>value</var>) to a <a for=/>header list</a><var>list</var>, run these steps:
823
+
(<var>name</var>, <var>value</var>) to a <a for=/>header list</a><var>list</var>:
819
824
820
825
<ol>
821
826
<li>
@@ -839,7 +844,7 @@ directly. Use <a for="header list">get, decode, and split</a> instead.
839
844
840
845
<div algorithm>
841
846
<p>To <dfn export for="header list" id=concept-header-list-set>set</dfn> a <a for=/>header</a>
842
-
(<var>name</var>, <var>value</var>) in a <a for=/>header list</a><var>list</var>, run these steps:
847
+
(<var>name</var>, <var>value</var>) in a <a for=/>header list</a><var>list</var>:
843
848
844
849
<ol>
845
850
<li><p>If <var>list</var><a for="header list">contains</a><var>name</var>, then set the
@@ -853,7 +858,7 @@ directly. Use <a for="header list">get, decode, and split</a> instead.
853
858
<div algorithm>
854
859
<p>To <dfn export for="header list" id=concept-header-list-combine>combine</dfn> a
855
860
<a for=/>header</a> (<var>name</var>, <var>value</var>) in a <a for=/>header list</a>
856
-
<var>list</var>, run these steps:
861
+
<var>list</var>:
857
862
858
863
<ol>
859
864
<li><p>If <var>list</var><a for="header list">contains</a><var>name</var>, then set the
@@ -869,7 +874,8 @@ directly. Use <a for="header list">get, decode, and split</a> instead.
869
874
870
875
<div algorithm>
871
876
<p>To <dfn>convert header names to a sorted-lowercase set</dfn>, given a <a for=/>list</a> of
872
-
<a lt=name for=header>names</a><var>headerNames</var>, run these steps:
877
+
<a lt=name for=header>names</a><var>headerNames</var>, run these steps. They return an
878
+
<a for=/>ordered set</a> of <a for=/>header names</a>.
873
879
874
880
<ol>
875
881
<li><p>Let <var>headerNamesSet</var> be a new <a for=/>ordered set</a>.
@@ -885,11 +891,10 @@ directly. Use <a for="header list">get, decode, and split</a> instead.
885
891
886
892
<div algorithm>
887
893
<p>To <dfn export for="header list" id=concept-header-list-sort-and-combine>sort and combine</dfn> a
888
-
<a for=/>header list</a><var>list</var>:
894
+
<a for=/>header list</a><var>list</var>, run these steps. They return a <a for=/>header list</a>.
889
895
890
896
<ol>
891
-
<li><p>Let <var>headers</var> be an empty <a for=/>list</a> of <a for=/>headers</a> with the key
892
-
being the <a for=header>name</a> and value the <a for=header>value</a>.
897
+
<li><p>Let <var>headers</var> be a <a for=/>header list</a>.
893
898
894
899
<li><p>Let <var>names</var> be the result of
895
900
<a>convert header names to a sorted-lowercase set</a> with all the <a lt=name for=header>names</a>
0 commit comments