diff --git a/proposals/http/middleware.md b/proposals/http/middleware.md index 7014b9c4..041abda9 100644 --- a/proposals/http/middleware.md +++ b/proposals/http/middleware.md @@ -205,6 +205,10 @@ consistent between implementations.

Field names are always strings.

Field names should always be treated as case insensitive by the fields resource for the purposes of equality checking.

+

The field-name syntax is defined by RFC 9110, which allows only ASCII +characters, and is the ground truth for what should be accepted as a +field name: +https://www.rfc-editor.org/rfc/rfc9110#section-5.1

type field-value

field-value

Field values should always be ASCII strings. However, in diff --git a/proposals/http/service.md b/proposals/http/service.md index 4052be1a..09b28d8f 100644 --- a/proposals/http/service.md +++ b/proposals/http/service.md @@ -289,6 +289,10 @@ consistent between implementations.

Field names are always strings.

Field names should always be treated as case insensitive by the fields resource for the purposes of equality checking.

+

The field-name syntax is defined by RFC 9110, which allows only ASCII +characters, and is the ground truth for what should be accepted as a +field name: +https://www.rfc-editor.org/rfc/rfc9110#section-5.1

type field-value

field-value

Field values should always be ASCII strings. However, in diff --git a/proposals/http/wit/types.wit b/proposals/http/wit/types.wit index a1f6094c..7e33c417 100644 --- a/proposals/http/wit/types.wit +++ b/proposals/http/wit/types.wit @@ -156,6 +156,11 @@ interface types { /// /// Field names should always be treated as case insensitive by the `fields` /// resource for the purposes of equality checking. + /// + /// The `field-name` syntax is defined by RFC 9110, which allows only ASCII + /// characters, and is the ground truth for what should be accepted as a + /// field name: + /// @since(version = 0.3.0) type field-name = string;