diff --git a/imports.md b/imports.md index 5dff42a..5ed3aa0 100644 --- a/imports.md +++ b/imports.md @@ -665,6 +665,7 @@ https://www.iana.org/assignments/http-proxy-status/http-proxy-status.xhtml#table
HTTP-response-transfer-coding
: option<string
>HTTP-response-content-coding
: option<string
>HTTP-response-timeout
HTTP-response-status-invalid
HTTP-upgrade-failed
HTTP-protocol-error
loop-detected
The tuple is a pair of the field key, represented as a string, and -Value, represented as a list of bytes. In a valid Fields, all keys -and values are valid UTF-8 strings. However, values are not always -well-formed, so they are represented as a raw list of bytes.
-An error result will be returned if any header or value was -syntactically invalid, or if a header was forbidden.
+Value, represented as a list of bytes. +An error result will be returned if any field-key
or field-value
is
+syntactically invalid, or if a field is forbidden.
entries
: list<(field-key
, field-value
)>[method]fields.get: func
Get all of the values corresponding to a key. If the key is not present
-in this fields
, an empty list is returned. However, if the key is
-present but empty, this is represented by a list with one or more
-empty field-values present.
fields
or is syntactically invalid, an empty list is returned.
+However, if the key is present but empty, this is represented by a list
+with one or more empty field-values present.
self
: borrow<fields
>false
is returned.
Set all of the values for a key. Clears any existing values for that key, if they have been set.
Fails with header-error.immutable
if the fields
are immutable.
Fails with header-error.invalid-syntax
if the field-key
or any of
+the field-value
s are syntactically invalid.
self
: borrow<fields
>Delete all values for a key. Does nothing if no values for the key exist.
Fails with header-error.immutable
if the fields
are immutable.
Fails with header-error.invalid-syntax
if the field-key
is
+syntactically invalid.
self
: borrow<fields
>Append a value for a key. Does not change or delete any existing values for that key.
Fails with header-error.immutable
if the fields
are immutable.
Fails with header-error.invalid-syntax
if the field-key
or
+field-value
are syntactically invalid.
self
: borrow<fields
>HTTP-response-transfer-coding
: option<string
>HTTP-response-content-coding
: option<string
>HTTP-response-timeout
HTTP-response-status-invalid
HTTP-upgrade-failed
HTTP-protocol-error
loop-detected