From 8e2a1394be6d97fa3da922c27f335dac7a77132a Mon Sep 17 00:00:00 2001
From: "Adam C. Foltzer" HTTP-response-transfer-coding: option<string>HTTP-response-content-coding: option<string>HTTP-response-timeoutHTTP-response-status-invalidHTTP-upgrade-failedHTTP-protocol-errorloop-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: funcGet 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-values 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-timeoutHTTP-response-status-invalidHTTP-upgrade-failedHTTP-protocol-errorloop-detected