Ignore:
Timestamp:
Jan 8, 2010, 7:23:57 AM (10 years ago)
Author:
julian.reschke@…
Message:

token/char ABNF: add (unused) ABNF rule for "special" characters for clarity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/p1-messaging.xml

    r741 r744  
    467467  <x:anchor-alias value="tchar"/>
    468468  <x:anchor-alias value="token"/>
     469  <x:anchor-alias value="special"/>
    469470   Many HTTP/1.1 header field values consist of words separated by whitespace
    470471   or special characters. These special characters &MUST; be in a quoted
     
    472473   <xref target="transfer.codings"/>).
    473474</t>
    474 <figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="token"/><iref primary="true" item="Grammar" subitem="tchar"/>
     475<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="token"/><iref primary="true" item="Grammar" subitem="tchar"/><iref primary="true" item="Grammar" subitem="special"/>
     476  <x:ref>token</x:ref>          = 1*<x:ref>tchar</x:ref>
     477<!--
     478  IMPORTANT: when editing "tchar" make sure that "special" is updated accordingly!!!
     479 -->
    475480  <x:ref>tchar</x:ref>          = "!" / "#" / "$" / "%" / "&amp;" / "'" / "*"
    476481                 / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"
    477482                 / <x:ref>DIGIT</x:ref> / <x:ref>ALPHA</x:ref>
    478                  
    479   <x:ref>token</x:ref>          = 1*<x:ref>tchar</x:ref>
     483                 ; any <x:ref>VCHAR</x:ref>, except <x:ref>special</x:ref>
     484
     485  <x:ref>special</x:ref>        = "(" / ")" / "&lt;" / ">" / "@" / ","
     486                 / ";" / ":" / "\" / DQUOTE / "/" / "["
     487                 / "]" / "?" / "=" / "{" / "}"
    480488</artwork></figure>
    481489<t anchor="rule.quoted-string">
     
    48554863
    48564864<x:ref>second</x:ref> = 2DIGIT
     4865<x:ref>special</x:ref> = "(" / ")" / "&lt;" / "&gt;" / "@" / "," / ";" / ":" / "\" /
     4866 DQUOTE / "/" / "[" / "]" / "?" / "=" / "{" / "}"
    48574867<x:ref>start-line</x:ref> = Request-Line / Status-Line
    48584868
     
    48904900; https-URI defined but not used
    48914901; partial-URI defined but not used
     4902; special defined but not used
    48924903</artwork></figure></section>
    48934904<?ENDINC p1-messaging.abnf-appendix ?>
Note: See TracChangeset for help on using the changeset viewer.