@@ -751,7 +751,7 @@ resource for the purposes of equality checking.</p>
751
751
<h4 ><a id =" field_name " ></a ><code >type field-name</code ></h4 >
752
752
<p ><a href =" #field_key " ><a href =" #field_key " ><code >field-key</code ></a ></a ></p >
753
753
<p >Field names are always strings.
754
- <p >Field keys should always be treated as case insensitive by the <a href =" #fields " ><code >fields</code ></a >
754
+ <p >Field names should always be treated as case insensitive by the <a href =" #fields " ><code >fields</code ></a >
755
755
resource for the purposes of equality checking.</p >
756
756
<h4 ><a id =" field_value " ></a ><code >type field-value</code ></h4 >
757
757
<p ><a href =" #field_value " ><a href =" #field_value " ><code >field-value</code ></a ></a ></p >
@@ -858,10 +858,10 @@ http-related errors.</p>
858
858
<h4 ><a id =" static_fields_from_list " ></a ><code >[static]fields.from-list: func</code ></h4 >
859
859
<p >Construct an HTTP Fields.</p >
860
860
<p >The resulting <a href =" #fields " ><code >fields</code ></a > is mutable.</p >
861
- <p >The list represents each key -value pair in the Fields. Keys
861
+ <p >The list represents each name -value pair in the Fields. Names
862
862
which have multiple values are represented by multiple entries in this
863
- list with the same key .</p >
864
- <p >The tuple is a pair of the field key , represented as a string, and
863
+ list with the same name .</p >
864
+ <p >The tuple is a pair of the field name , represented as a string, and
865
865
Value, represented as a list of bytes.</p >
866
866
<p >An error result will be returned if any <a href =" #field_name " ><code >field-name</code ></a > or <a href =" #field_value " ><code >field-value</code ></a > is
867
867
syntactically invalid, or if a field is forbidden.</p >
@@ -874,9 +874,9 @@ syntactically invalid, or if a field is forbidden.</p>
874
874
<li ><a id =" static_fields_from_list.0 " ></a > result< ; own< ; <a href =" #fields " ><a href =" #fields " ><code >fields</code ></a ></a >> ; , <a href =" #header_error " ><a href =" #header_error " ><code >header-error</code ></a ></a >> ; </li >
875
875
</ul >
876
876
<h4 ><a id =" method_fields_get " ></a ><code >[method]fields.get: func</code ></h4 >
877
- <p >Get all of the values corresponding to a key . If the key is not present
877
+ <p >Get all of the values corresponding to a name . If the name is not present
878
878
in this <a href =" #fields " ><code >fields</code ></a > or is syntactically invalid, an empty list is returned.
879
- However, if the key is present but empty, this is represented by a list
879
+ However, if the name is present but empty, this is represented by a list
880
880
with one or more empty field-values present.</p >
881
881
<h5 >Params</h5 >
882
882
<ul >
@@ -888,7 +888,7 @@ with one or more empty field-values present.</p>
888
888
<li ><a id =" method_fields_get.0 " ></a > list< ; <a href =" #field_value " ><a href =" #field_value " ><code >field-value</code ></a ></a >> ; </li >
889
889
</ul >
890
890
<h4 ><a id =" method_fields_has " ></a ><code >[method]fields.has: func</code ></h4 >
891
- <p >Returns <code >true</code > when the key is present in this <a href =" #fields " ><code >fields</code ></a >. If the key is
891
+ <p >Returns <code >true</code > when the name is present in this <a href =" #fields " ><code >fields</code ></a >. If the name is
892
892
syntactically invalid, <code >false</code > is returned.</p >
893
893
<h5 >Params</h5 >
894
894
<ul >
@@ -900,8 +900,8 @@ syntactically invalid, <code>false</code> is returned.</p>
900
900
<li ><a id =" method_fields_has.0 " ></a > <code >bool</code ></li >
901
901
</ul >
902
902
<h4 ><a id =" method_fields_set " ></a ><code >[method]fields.set: func</code ></h4 >
903
- <p >Set all of the values for a key . Clears any existing values for that
904
- key , if they have been set.</p >
903
+ <p >Set all of the values for a name . Clears any existing values for that
904
+ name , if they have been set.</p >
905
905
<p >Fails with <code >header-error.immutable</code > if the <a href =" #fields " ><code >fields</code ></a > are immutable.</p >
906
906
<p >Fails with <code >header-error.invalid-syntax</code > if the <a href =" #field_name " ><code >field-name</code ></a > or any of
907
907
the <a href =" #field_value " ><code >field-value</code ></a >s are syntactically invalid.</p >
@@ -916,7 +916,7 @@ the <a href="#field_value"><code>field-value</code></a>s are syntactically inval
916
916
<li ><a id =" method_fields_set.0 " ></a > result< ; _, <a href =" #header_error " ><a href =" #header_error " ><code >header-error</code ></a ></a >> ; </li >
917
917
</ul >
918
918
<h4 ><a id =" method_fields_delete " ></a ><code >[method]fields.delete: func</code ></h4 >
919
- <p >Delete all values for a key . Does nothing if no values for the key
919
+ <p >Delete all values for a name . Does nothing if no values for the name
920
920
exist.</p >
921
921
<p >Fails with <code >header-error.immutable</code > if the <a href =" #fields " ><code >fields</code ></a > are immutable.</p >
922
922
<p >Fails with <code >header-error.invalid-syntax</code > if the <a href =" #field_name " ><code >field-name</code ></a > is
@@ -931,8 +931,8 @@ syntactically invalid.</p>
931
931
<li ><a id =" method_fields_delete.0 " ></a > result< ; _, <a href =" #header_error " ><a href =" #header_error " ><code >header-error</code ></a ></a >> ; </li >
932
932
</ul >
933
933
<h4 ><a id =" method_fields_append " ></a ><code >[method]fields.append: func</code ></h4 >
934
- <p >Append a value for a key . Does not change or delete any existing
935
- values for that key .</p >
934
+ <p >Append a value for a name . Does not change or delete any existing
935
+ values for that name .</p >
936
936
<p >Fails with <code >header-error.immutable</code > if the <a href =" #fields " ><code >fields</code ></a > are immutable.</p >
937
937
<p >Fails with <code >header-error.invalid-syntax</code > if the <a href =" #field_name " ><code >field-name</code ></a > or
938
938
<a href =" #field_value " ><code >field-value</code ></a > are syntactically invalid.</p >
@@ -947,12 +947,12 @@ values for that key.</p>
947
947
<li ><a id =" method_fields_append.0 " ></a > result< ; _, <a href =" #header_error " ><a href =" #header_error " ><code >header-error</code ></a ></a >> ; </li >
948
948
</ul >
949
949
<h4 ><a id =" method_fields_entries " ></a ><code >[method]fields.entries: func</code ></h4 >
950
- <p >Retrieve the full set of keys and values in the Fields. Like the
951
- constructor, the list represents each key -value pair.</p >
952
- <p >The outer list represents each key -value pair in the Fields. Keys
950
+ <p >Retrieve the full set of names and values in the Fields. Like the
951
+ constructor, the list represents each name -value pair.</p >
952
+ <p >The outer list represents each name -value pair in the Fields. Names
953
953
which have multiple values are represented by multiple entries in this
954
- list with the same key .</p >
955
- <p >The keys and values are always returned in the original casing and in
954
+ list with the same name .</p >
955
+ <p >The names and values are always returned in the original casing and in
956
956
the order in which they will be serialized for transport.</p >
957
957
<h5 >Params</h5 >
958
958
<ul >
0 commit comments