Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ABNF (see #520) #521

Merged
merged 1 commit into from Mar 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions draft-ietf-httpbis-header-structure.md
Expand Up @@ -184,8 +184,8 @@ Dictionaries are unordered maps of key-value pairs, where the keys are identifie
In the textual HTTP serialisation, keys and values are separated by "=" (without whitespace), and key/value pairs are separated by a comma with optional whitespace. Duplicate keys MUST cause parsing to fail.

~~~ abnf
dictionary = dict_member 0*1023( OWS "," OWS dict_member )
dict_member = identifier "=" item
dictionary = dict-member 0*1023( OWS "," OWS dict-member )
dict-member = identifier "=" item
~~~

For example, a header field whose value is defined as a dictionary could look like:
Expand Down Expand Up @@ -224,8 +224,8 @@ Lists are arrays of items ({{item}}) with one to 1024 members.
In the textual HTTP serialisation, each member is separated by a comma and optional whitespace.

~~~ abnf
list = list_member 0*1023( OWS "," OWS list_member )
list_member = item
list = list-member 0*1023( OWS "," OWS list-member )
list-member = item
~~~

For example, a header field whose value is defined as a list of identifiers could look like:
Expand Down Expand Up @@ -261,8 +261,8 @@ A parameterised identifier is an identifier ({{identifier}}) with up to 256 para
In the textual HTTP serialisation, each parameterised identifier is separated by a comma and optional whitespace. Parameters are delimited from each other using semicolons (";"), and equals ("=") delimits the parameter name from its value.

~~~ abnf
param_list = param_id 0*255( OWS "," OWS param_id )
param_id = identifier 0*256( OWS ";" OWS identifier [ "=" item ] )
param-list = param-id 0*255( OWS "," OWS param-id )
param-id = identifier 0*256( OWS ";" OWS identifier [ "=" item ] )
~~~

For example,
Expand Down Expand Up @@ -402,10 +402,10 @@ Abstractly, strings are up to 1024 printable ASCII {{!RFC0020}} characters (i.e.
The textual HTTP serialisation of strings uses a backslash ("\\") to escape double quotes and backslashes in strings.

~~~ abnf
string = DQUOTE 0*1024(char) DQUOTE
char = unescaped / escape ( DQUOTE / "\" )
string = DQUOTE 0*1024(chr) DQUOTE
chr = unescaped / escaped
unescaped = %x20-21 / %x23-5B / %x5D-7E
escape = "\"
escaped = "\" ( DQUOTE / "\" )
~~~

For example, a header whose value is defined as a string could look like:
Expand Down