From catalog/rfc9110-http.abnf rule: received-protocol

Definition

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

protocol-version = token

protocol-name = token

token = 1*tchar

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

    

Info

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

Alphabet

Translations

Railroad Diagram

received-protocol protocol-name / protocol-version

ECMAScript/JavaScript Regular Expression Literal

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

Swift Regular Expression

[!#-'*-+\--.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|~]*)