From catalog/rfc9110-http.abnf rule: Upgrade

Definition

Upgrade = *protocol

protocol = protocol-name [ "/" protocol-version ]

protocol-version = token

protocol-name = token

token = 1*tchar

tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~" / DIGIT / ALPHA

    

Info

Rulename
Upgrade
Dependencies
ALPHA, DIGIT, tchar, token, protocol-name, protocol-version, protocol, Upgrade
Used Builtins
ALPHA, DIGIT

Alphabet

Translations

Railroad Diagram

Upgrade protocol

ECMAScript/JavaScript Regular Expression Literal

/^(|[!#-'*-+\--.0-9A-Z\^-z|~]((/[!#-'*-+\--.0-9A-Z\^-z|~])?[!#-'*-+\--.0-9A-Z\^-z|~])*(/[!#-'*-+\--.0-9A-Z\^-z|~])?)$/

Swift Regular Expression

|[!#-'*-+\--.0-9A-Z\^-z|~]((/[!#-'*-+\--.0-9A-Z\^-z|~])?[!#-'*-+\--.0-9A-Z\^-z|~])*(/[!#-'*-+\--.0-9A-Z\^-z|~])?

POSIX Extended Regular Expression

|[!#-'*-+\--.0-9A-Z\^-z|~]((/[!#-'*-+\--.0-9A-Z\^-z|~])?[!#-'*-+\--.0-9A-Z\^-z|~])*(/[!#-'*-+\--.0-9A-Z\^-z|~])?