source: draft-ietf-httpbis/latest/p1-messaging.abnf.xml @ 420

Last change on this file since 420 was 420, checked in by julian.reschke@…, 11 years ago

add code and Makefile rules to generate ABNF appendix sections (related to #36)

File size: 7.1 KB
Line 
1<section title="Collected ABNF" anchor="collected.abnf">
2   <figure>
3      <artwork type="abnf" name="p1-messaging.parsed-abnf">
4BWS = OWS&#xD;
5Cache-Control = &lt;Cache-Control, defined in [Part6], Section 16.4&gt;&#xD;
6Chunked-Body = *chunk last-chunk trailer-part CRLF&#xD;
7Connection = "Connection:" OWS Connection-v&#xD;
8Connection-v = *( "," OWS ) connection-token *( OWS "," [ OWS&#xD;
9 connection-token ] )&#xD;
10Content-Length = "Content-Length:" OWS 1*Content-Length-v&#xD;
11Content-Length-v = 1*DIGIT&#xD;
12Date = "Date:" OWS Date-v&#xD;
13Date-v = HTTP-date&#xD;
14GMT = %x47.4D.54&#xD;
15HTTP-Prot-Name = %x48.54.54.50&#xD;
16HTTP-Version = HTTP-Prot-Name "/" 1*DIGIT "." 1*DIGIT&#xD;
17HTTP-date = rfc1123-date / obsolete-date&#xD;
18HTTP-message = Request / Response&#xD;
19Host = "Host:" OWS Host-v&#xD;
20Host-v = uri-host [ ":" port ]&#xD;
21Method = token&#xD;
22OWS = *( [ obs-fold ] WSP )&#xD;
23Pragma = &lt;Pragma, defined in [Part6], Section 16.4&gt;&#xD;
24RWS = 1*( [ obs-fold ] WSP )&#xD;
25Reason-Phrase = *( WSP / VCHAR / obs-text )&#xD;
26Request = Request-Line *( ( general-header / request-header /&#xD;
27 entity-header ) CRLF ) CRLF [ message-body ]&#xD;
28Request-Line = Method SP request-target SP HTTP-Version CRLF&#xD;
29Response = Status-Line *( ( general-header / response-header /&#xD;
30 entity-header ) CRLF ) CRLF [ message-body ]&#xD;
31Status-Code = 3DIGIT&#xD;
32Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF&#xD;
33TE = "TE:" OWS TE-v&#xD;
34TE-v = [ ( "," / t-codings ) *( OWS "," [ OWS t-codings ] ) ]&#xD;
35Trailer = "Trailer:" OWS Trailer-v&#xD;
36Trailer-v = *( "," OWS ) field-name *( OWS "," [ OWS field-name ] )&#xD;
37Transfer-Encoding = "Transfer-Encoding:" OWS Transfer-Encoding-v&#xD;
38Transfer-Encoding-v = *( "," OWS ) transfer-coding *( OWS "," [ OWS&#xD;
39 transfer-coding ] )&#xD;
40URI = &lt;URI, defined in [RFC3986], Section 3&gt;&#xD;
41URI-reference = &lt;URI-reference, defined in [RFC3986], Section 4.1&gt;&#xD;
42Upgrade = "Upgrade:" OWS Upgrade-v&#xD;
43Upgrade-v = *( "," OWS ) product *( OWS "," [ OWS product ] )&#xD;
44Via = "Via:" OWS Via-v&#xD;
45Via-v = *( "," OWS ) received-protocol RWS received-by [ RWS comment&#xD;
46 ] *( OWS "," [ OWS received-protocol RWS received-by [ RWS comment ]&#xD;
47 ] )&#xD;
48Warning = &lt;Warning, defined in [Part6], Section 16.6&gt;&#xD;
49absolute-URI = &lt;absolute-URI, defined in [RFC3986], Section 4.3&gt;&#xD;
50accept-params = &lt;accept-params, defined in [Part3], Section 6.1&gt;&#xD;
51asctime-date = wkday SP date3 SP time SP 4DIGIT&#xD;
52attribute = token&#xD;
53authority = &lt;authority, defined in [RFC3986], Section 3.2&gt;&#xD;
54chunk = chunk-size *WSP [ chunk-ext ] CRLF chunk-data CRLF&#xD;
55chunk-data = 1*OCTET&#xD;
56chunk-ext = *( ";" *WSP chunk-ext-name [ "=" chunk-ext-val ] *WSP )&#xD;
57chunk-ext-name = token&#xD;
58chunk-ext-val = token / quoted-string&#xD;
59chunk-size = 1*HEXDIG&#xD;
60comment = "(" *( ctext / quoted-pair / comment ) ")"&#xD;
61connection-token = token&#xD;
62ctext = *( OWS / %x21-27 / %x2A-7E / obs-text )&#xD;
63date1 = 2DIGIT SP month SP 4DIGIT&#xD;
64date2 = 2DIGIT "-" month "-" 2DIGIT&#xD;
65date3 = month SP ( 2DIGIT / ( SP DIGIT ) )&#xD;
66entity-body = &lt;entity-body, defined in [Part3], Section 4.2&gt;&#xD;
67entity-header = &lt;entity-header, defined in [Part3], Section 4.1&gt;&#xD;
68field-content = *( WSP / VCHAR / obs-text )&#xD;
69field-name = token&#xD;
70field-value = *( field-content / OWS )&#xD;
71fragment = &lt;fragment, defined in [RFC3986], Section 3.5&gt;&#xD;
72general-header = Cache-Control / Connection / Date / Pragma / Trailer&#xD;
73 / Transfer-Encoding / Upgrade / Via / Warning&#xD;
74generic-message = start-line *( message-header CRLF ) CRLF [&#xD;
75 message-body ]&#xD;
76http-URI = "http://" authority path-abempty [ "?" query ]&#xD;
77l-Fri = %x46.72.69.64.61.79&#xD;
78l-Mon = %x4D.6F.6E.64.61.79&#xD;
79l-Sat = %x53.61.74.75.72.64.61.79&#xD;
80l-Sun = %x53.75.6E.64.61.79&#xD;
81l-Thu = %x54.68.75.72.73.64.61.79&#xD;
82l-Tue = %x54.75.65.73.64.61.79&#xD;
83l-Wed = %x57.65.64.6E.65.73.64.61.79&#xD;
84last-chunk = 1*"0" *WSP [ chunk-ext ] CRLF&#xD;
85message-body = entity-body / &lt;entity-body encoded as per&#xD;
86 Transfer-Encoding&gt;&#xD;
87message-header = field-name ":" OWS [ field-value ] OWS&#xD;
88month = s-Jan / s-Feb / s-Mar / s-Apr / s-May / s-Jun / s-Jul / s-Aug&#xD;
89 / s-Sep / s-Oct / s-Nov / s-Dec&#xD;
90obs-fold = CRLF&#xD;
91obs-text = %x80-FF&#xD;
92obsolete-date = rfc850-date / asctime-date&#xD;
93parameter = attribute BWS "=" BWS value&#xD;
94partial-URI = relative-part [ "?" query ]&#xD;
95path-abempty = &lt;path-abempty, defined in [RFC3986], Section 3.3&gt;&#xD;
96path-absolute = &lt;path-absolute, defined in [RFC3986], Section 3.3&gt;&#xD;
97port = &lt;port, defined in [RFC3986], Section 3.2.3&gt;&#xD;
98product = token [ "/" product-version ]&#xD;
99product-version = token&#xD;
100protocol-name = token&#xD;
101protocol-version = token&#xD;
102pseudonym = token&#xD;
103qdtext = *( OWS / "!" / %x23-5B / %x5D-7E / obs-text )&#xD;
104query = &lt;query, defined in [RFC3986], Section 3.4&gt;&#xD;
105quoted-pair = "\" quoted-text&#xD;
106quoted-string = DQUOTE *( qdtext / quoted-pair ) DQUOTE&#xD;
107quoted-text = %x01-09 / %x0B-0C / %x0E-FF&#xD;
108received-by = ( uri-host [ ":" port ] ) / pseudonym&#xD;
109received-protocol = [ protocol-name "/" ] protocol-version&#xD;
110relative-part = &lt;relative-part, defined in [RFC3986], Section 4.2&gt;&#xD;
111request-header = &lt;request-header, defined in [Part2], Section 4&gt;&#xD;
112request-target = "*" / absolute-URI / ( path-absolute [ "?" query ] )&#xD;
113 / authority&#xD;
114response-header = &lt;response-header, defined in [Part2], Section 6&gt;&#xD;
115rfc1123-date = wkday "," SP date1 SP time SP GMT&#xD;
116rfc850-date = weekday "," SP date2 SP time SP GMT&#xD;
117s-Apr = %x41.70.72&#xD;
118s-Aug = %x41.75.67&#xD;
119s-Dec = %x44.65.63&#xD;
120s-Feb = %x46.65.62&#xD;
121s-Fri = %x46.72.69&#xD;
122s-Jan = %x4A.61.6E&#xD;
123s-Jul = %x4A.75.6C&#xD;
124s-Jun = %x4A.75.6E&#xD;
125s-Mar = %x4D.61.72&#xD;
126s-May = %x4D.61.79&#xD;
127s-Mon = %x4D.6F.6E&#xD;
128s-Nov = %x4E.6F.76&#xD;
129s-Oct = %x4F.63.74&#xD;
130s-Sat = %x53.61.74&#xD;
131s-Sep = %x53.65.70&#xD;
132s-Sun = %x53.75.6E&#xD;
133s-Thu = %x54.68.75&#xD;
134s-Tue = %x54.75.65&#xD;
135s-Wed = %x57.65.64&#xD;
136start-line = Request-Line / Status-Line&#xD;
137t-codings = "trailers" / ( transfer-extension [ accept-params ] )&#xD;
138tchar = "!" / "#" / "$" / "%" / "&amp;" / "'" / "*" / "+" / "-" / "." /&#xD;
139 "^" / "_" / "`" / "|" / "~" / DIGIT / ALPHA&#xD;
140time = 2DIGIT ":" 2DIGIT ":" 2DIGIT&#xD;
141token = 1*tchar&#xD;
142trailer-part = *( entity-header CRLF )&#xD;
143transfer-coding = "chunked" / transfer-extension&#xD;
144transfer-extension = token *( OWS ";" OWS parameter )&#xD;
145uri-host = &lt;host, defined in [RFC3986], Section 3.2.2&gt;&#xD;
146value = token / quoted-string&#xD;
147weekday = l-Mon / l-Tue / l-Wed / l-Thu / l-Fri / l-Sat / l-Sun&#xD;
148wkday = s-Mon / s-Tue / s-Wed / s-Thu / s-Fri / s-Sat / s-Sun&#xD;
149; Chunked-Body defined but not used&#xD;
150; Content-Length defined but not used&#xD;
151; HTTP-message defined but not used&#xD;
152; Host defined but not used&#xD;
153; TE defined but not used&#xD;
154; URI defined but not used&#xD;
155; URI-reference defined but not used&#xD;
156; fragment defined but not used&#xD;
157; generic-message defined but not used&#xD;
158; http-URI defined but not used&#xD;
159; partial-URI defined but not used&#xD;
160</artwork>
161   </figure>
162</section>
Note: See TracBrowser for help on using the repository browser.