def Field_name =
block
-- Field names must start with an ASCII letter and can include
-- letters, digits, or '-' characters.
let head = $alpha
let tail = Many $[ $alpha | '-' | $digit ]
let result = concat [[head], tail]
^ map (c in result)
toLower c
To match the RFC, I think it should look more like this:
def Field_name =
block
let result = Many $[ '!' | '#' | '$' | '%' | '&' | "'" | '*' | '+' | '-' | '.' | '^' | '_' | '`' | '|' | '~' | $digit | $alpha ]
^ map (c in result)
toLower c
Just wanted to submit an issue before PR, in case there's a place in the spec that I missed that specifies the restrictions implemented in HTTP-1.1.ddl.
RFC 9110 defines
field-name
with the following productions:We HTTP-1.1.ddl defines it like this:
To match the RFC, I think it should look more like this:
Just wanted to submit an issue before PR, in case there's a place in the spec that I missed that specifies the restrictions implemented in HTTP-1.1.ddl.