source: draft-ietf-httpbis/latest/httpbis.abnf @ 2222

Last change on this file since 2222 was 2181, checked in by julian.reschke@…, 7 years ago

allow origin-form to use a path starting with "" (see #431)

  • Property svn:eol-style set to native
File size: 11.5 KB
Line 
1; the ABNF below was extracted from the IETF HTTPbis WG Internet Drafts
2; please see <http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging>
3; for copyright information.
4
5Accept = [ ( "," / ( media-range [ accept-params ] ) ) *( OWS "," [ OWS ( media-range [ accept-params ] ) ] ) ]
6Accept-Charset = *( "," OWS ) ( ( charset / "*" ) [ weight ] ) *( OWS "," [ OWS ( ( charset / "*" ) [ weight ] ) ] )
7Accept-Encoding = [ ( "," / ( codings [ weight ] ) ) *( OWS "," [ OWS ( codings [ weight ] ) ] ) ]
8Accept-Language = *( "," OWS ) ( language-range [ weight ] ) *( OWS "," [ OWS ( language-range [ weight ] ) ] )
9Accept-Ranges = acceptable-ranges
10Age = delta-seconds
11Allow = [ ( "," / method ) *( OWS "," [ OWS method ] ) ]
12Authorization = credentials
13BWS = OWS
14Cache-Control = *( "," OWS ) cache-directive *( OWS "," [ OWS cache-directive ] )
15Connection = *( "," OWS ) connection-option *( OWS "," [ OWS connection-option ] )
16Content-Encoding = *( "," OWS ) content-coding *( OWS "," [ OWS content-coding ] )
17Content-Language = *( "," OWS ) language-tag *( OWS "," [ OWS language-tag ] )
18Content-Length = 1*DIGIT
19Content-Location = absolute-URI / partial-URI
20Content-Range = byte-content-range / other-content-range
21Content-Type = media-type
22Date = HTTP-date
23ETag = entity-tag
24Expect = *( "," OWS ) expectation *( OWS "," [ OWS expectation ] )
25Expires = HTTP-date
26From = mailbox
27GMT = %x47.4D.54 ; GMT
28
29HTTP-date = IMF-fixdate / obs-date
30HTTP-message = start-line *( header-field CRLF ) CRLF [ message-body ]
31HTTP-name = %x48.54.54.50 ; HTTP
32
33HTTP-version = HTTP-name "/" DIGIT "." DIGIT
34Host = uri-host [ ":" port ]
35IMF-fixdate = day-name "," SP date1 SP time-of-day SP GMT
36If-Match = "*" / ( *( "," OWS ) entity-tag *( OWS "," [ OWS entity-tag ] ) )
37If-Modified-Since = HTTP-date
38If-None-Match = "*" / ( *( "," OWS ) entity-tag *( OWS "," [ OWS entity-tag ] ) )
39If-Range = entity-tag / HTTP-date
40If-Unmodified-Since = HTTP-date
41Last-Modified = HTTP-date
42Location = URI-reference
43Max-Forwards = 1*DIGIT
44OWS = *( SP / HTAB )
45Pragma = *( "," OWS ) pragma-directive *( OWS "," [ OWS pragma-directive ] )
46Proxy-Authenticate = *( "," OWS ) challenge *( OWS "," [ OWS challenge ] )
47Proxy-Authorization = credentials
48RWS = 1*( SP / HTAB )
49Range = byte-ranges-specifier / other-ranges-specifier
50Referer = absolute-URI / partial-URI
51Retry-After = HTTP-date / delta-seconds
52Server = product *( RWS ( product / comment ) )
53TE = [ ( "," / t-codings ) *( OWS "," [ OWS t-codings ] ) ]
54Trailer = *( "," OWS ) field-name *( OWS "," [ OWS field-name ] )
55Transfer-Encoding = *( "," OWS ) transfer-coding *( OWS "," [ OWS transfer-coding ] )
56URI-reference = <URI-reference, defined in [RFC3986], Section 4.1>
57Upgrade = *( "," OWS ) protocol *( OWS "," [ OWS protocol ] )
58User-Agent = product *( RWS ( product / comment ) )
59Vary = "*" / ( *( "," OWS ) field-name *( OWS "," [ OWS field-name ] ) )
60Via = *( "," OWS ) ( received-protocol RWS received-by [ RWS comment ] ) *( OWS "," [ OWS ( received-protocol RWS received-by [ RWS comment ] ) ] )
61WWW-Authenticate = *( "," OWS ) challenge *( OWS "," [ OWS challenge ] )
62Warning = *( "," OWS ) warning-value *( OWS "," [ OWS warning-value ] )
63absolute-URI = <absolute-URI, defined in [RFC3986], Section 4.3>
64absolute-form = absolute-URI
65absolute-path = 1*( "/" segment )
66accept-ext = OWS ";" OWS token [ "=" word ]
67accept-params = weight *accept-ext
68acceptable-ranges = ( *( "," OWS ) range-unit *( OWS "," [ OWS range-unit ] ) ) / "none"
69asctime-date = day-name SP date3 SP time-of-day SP year
70asterisk-form = "*"
71attribute = token
72auth-param = token BWS "=" BWS ( token / quoted-string )
73auth-scheme = token
74authority = <authority, defined in [RFC3986], Section 3.2>
75authority-form = authority
76byte-content-range = bytes-unit SP ( byte-range-resp / unsatisfied-range )
77byte-range = first-byte-pos "-" last-byte-pos
78byte-range-resp = byte-range "/" ( complete-length / "*" )
79byte-range-set = *( "," OWS ) ( byte-range-spec / suffix-byte-range-spec ) *( OWS "," [ OWS ( byte-range-spec / suffix-byte-range-spec ) ] )
80byte-range-spec = first-byte-pos "-" [ last-byte-pos ]
81byte-ranges-specifier = bytes-unit "=" byte-range-set
82bytes-unit = "bytes"
83cache-directive = token [ "=" ( token / quoted-string ) ]
84challenge = auth-scheme [ 1*SP ( token68 / [ ( "," / auth-param ) *( OWS "," [ OWS auth-param ] ) ] ) ]
85charset = token
86chunk = chunk-size [ chunk-ext ] CRLF chunk-data CRLF
87chunk-data = 1*OCTET
88chunk-ext = *( ";" chunk-ext-name [ "=" chunk-ext-val ] )
89chunk-ext-name = token
90chunk-ext-val = token / quoted-str-nf
91chunk-size = 1*HEXDIG
92chunked-body = *chunk last-chunk trailer-part CRLF
93codings = content-coding / "identity" / "*"
94comment = "(" *( ctext / quoted-cpair / comment ) ")"
95complete-length = 1*DIGIT
96connection-option = token
97content-coding = token
98credentials = auth-scheme [ 1*SP ( token68 / [ ( "," / auth-param ) *( OWS "," [ OWS auth-param ] ) ] ) ]
99ctext = HTAB / SP / %x21-27 ; '!'-'''
100 / %x2A-5B ; '*'-'['
101 / %x5D-7E ; ']'-'~'
102 / obs-text
103date1 = day SP month SP year
104date2 = day "-" month "-" 2DIGIT
105date3 = month SP ( 2DIGIT / ( SP DIGIT ) )
106day = 2DIGIT
107day-name = %x4D.6F.6E ; Mon
108 / %x54.75.65 ; Tue
109 / %x57.65.64 ; Wed
110 / %x54.68.75 ; Thu
111 / %x46.72.69 ; Fri
112 / %x53.61.74 ; Sat
113 / %x53.75.6E ; Sun
114
115day-name-l = %x4D.6F.6E.64.61.79 ; Monday
116 / %x54.75.65.73.64.61.79 ; Tuesday
117 / %x57.65.64.6E.65.73.64.61.79 ; Wednesday
118 / %x54.68.75.72.73.64.61.79 ; Thursday
119 / %x46.72.69.64.61.79 ; Friday
120 / %x53.61.74.75.72.64.61.79 ; Saturday
121 / %x53.75.6E.64.61.79 ; Sunday
122
123delta-seconds = 1*DIGIT
124entity-tag = [ weak ] opaque-tag
125etagc = "!" / %x23-7E ; '#'-'~'
126 / obs-text
127expect-name = token
128expect-param = expect-name [ BWS "=" BWS expect-value ]
129expect-value = token / quoted-string
130expectation = expect-name [ BWS "=" BWS expect-value ] *( OWS ";" [ OWS expect-param ] )
131extension-pragma = token [ "=" ( token / quoted-string ) ]
132field-content = *( HTAB / SP / VCHAR / obs-text )
133field-name = token
134field-value = *( field-content / obs-fold )
135first-byte-pos = 1*DIGIT
136header-field = field-name ":" OWS field-value BWS
137hour = 2DIGIT
138http-URI = "http://" authority path-abempty [ "?" query ]
139https-URI = "https://" authority path-abempty [ "?" query ]
140language-range = <language-range, defined in [RFC4647], Section 2.1>
141language-tag = <Language-Tag, defined in [RFC5646], Section 2.1>
142last-byte-pos = 1*DIGIT
143last-chunk = 1*"0" [ chunk-ext ] CRLF
144mailbox = <mailbox, defined in [RFC5322], Section 3.4>
145media-range = ( "*/*" / ( type "/*" ) / ( type "/" subtype ) ) *( OWS ";" OWS parameter )
146media-type = type "/" subtype *( OWS ";" OWS parameter )
147message-body = *OCTET
148method = token
149minute = 2DIGIT
150month = %x4A.61.6E ; Jan
151 / %x46.65.62 ; Feb
152 / %x4D.61.72 ; Mar
153 / %x41.70.72 ; Apr
154 / %x4D.61.79 ; May
155 / %x4A.75.6E ; Jun
156 / %x4A.75.6C ; Jul
157 / %x41.75.67 ; Aug
158 / %x53.65.70 ; Sep
159 / %x4F.63.74 ; Oct
160 / %x4E.6F.76 ; Nov
161 / %x44.65.63 ; Dec
162
163obs-date = rfc850-date / asctime-date
164obs-fold = CRLF ( SP / HTAB )
165obs-text = %x80-FF
166opaque-tag = DQUOTE *etagc DQUOTE
167origin-form = absolute-path [ "?" query ]
168other-content-range = other-range-unit SP other-range-resp
169other-range-resp = *CHAR
170other-range-set = 1*CHAR
171other-range-unit = token
172other-ranges-specifier = other-range-unit "=" other-range-set
173parameter = attribute "=" value
174partial-URI = relative-part [ "?" query ]
175path-abempty = <path-abempty, defined in [RFC3986], Section 3.3>
176port = <port, defined in [RFC3986], Section 3.2.3>
177pragma-directive = "no-cache" / extension-pragma
178product = token [ "/" product-version ]
179product-version = token
180protocol = protocol-name [ "/" protocol-version ]
181protocol-name = token
182protocol-version = token
183pseudonym = token
184qdtext = HTAB / SP / "!" / %x23-5B ; '#'-'['
185 / %x5D-7E ; ']'-'~'
186 / obs-text
187qdtext-nf = HTAB / SP / "!" / %x23-5B ; '#'-'['
188 / %x5D-7E ; ']'-'~'
189 / obs-text
190query = <query, defined in [RFC3986], Section 3.4>
191quoted-cpair = "\" ( HTAB / SP / VCHAR / obs-text )
192quoted-pair = "\" ( HTAB / SP / VCHAR / obs-text )
193quoted-str-nf = DQUOTE *( qdtext-nf / quoted-pair ) DQUOTE
194quoted-string = DQUOTE *( qdtext / quoted-pair ) DQUOTE
195qvalue = ( "0" [ "." *3DIGIT ] ) / ( "1" [ "." *3"0" ] )
196range-unit = bytes-unit / other-range-unit
197rank = ( "0" [ "." *3DIGIT ] ) / ( "1" [ "." *3"0" ] )
198reason-phrase = *( HTAB / SP / VCHAR / obs-text )
199received-by = ( uri-host [ ":" port ] ) / pseudonym
200received-protocol = [ protocol-name "/" ] protocol-version
201relative-part = <relative-part, defined in [RFC3986], Section 4.2>
202request-line = method SP request-target SP HTTP-version CRLF
203request-target = origin-form / absolute-form / authority-form / asterisk-form
204rfc850-date = day-name-l "," SP date2 SP time-of-day SP GMT
205second = 2DIGIT
206segment = <segment, defined in [RFC3986], Section 3.3>
207special = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\" / DQUOTE / "/" / "[" / "]" / "?" / "=" / "{" / "}"
208start-line = request-line / status-line
209status-code = 3DIGIT
210status-line = HTTP-version SP status-code SP reason-phrase CRLF
211subtype = token
212suffix-byte-range-spec = "-" suffix-length
213suffix-length = 1*DIGIT
214t-codings = "trailers" / ( transfer-coding [ t-ranking ] )
215t-ranking = OWS ";" OWS "q=" rank
216tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~" / DIGIT / ALPHA
217time-of-day = hour ":" minute ":" second
218token = 1*tchar
219token68 = 1*( ALPHA / DIGIT / "-" / "." / "_" / "~" / "+" / "/" ) *"="
220trailer-part = *( header-field CRLF )
221transfer-coding = "chunked" / "compress" / "deflate" / "gzip" / transfer-extension
222transfer-extension = token *( OWS ";" OWS transfer-parameter )
223transfer-parameter = attribute BWS "=" BWS value
224type = token
225unsatisfied-range = "*/" complete-length
226uri-host = <host, defined in [RFC3986], Section 3.2.2>
227value = word
228warn-agent = ( uri-host [ ":" port ] ) / pseudonym
229warn-code = 3DIGIT
230warn-date = DQUOTE HTTP-date DQUOTE
231warn-text = quoted-string
232warning-value = warn-code SP warn-agent SP warn-text [ SP warn-date ]
233weak = %x57.2F ; W/
234
235weight = OWS ";" OWS "q=" qvalue
236word = token / quoted-string
237year = 4DIGIT
238; Accept defined but not used
239; Accept-Charset defined but not used
240; Accept-Encoding defined but not used
241; Accept-Language defined but not used
242; Accept-Ranges defined but not used
243; Age defined but not used
244; Allow defined but not used
245; Authorization defined but not used
246; Cache-Control defined but not used
247; Connection defined but not used
248; Content-Encoding defined but not used
249; Content-Language defined but not used
250; Content-Length defined but not used
251; Content-Location defined but not used
252; Content-Range defined but not used
253; Content-Type defined but not used
254; Date defined but not used
255; ETag defined but not used
256; Expect defined but not used
257; Expires defined but not used
258; From defined but not used
259; HTTP-message defined but not used
260; Host defined but not used
261; If-Match defined but not used
262; If-Modified-Since defined but not used
263; If-None-Match defined but not used
264; If-Range defined but not used
265; If-Unmodified-Since defined but not used
266; Last-Modified defined but not used
267; Location defined but not used
268; Max-Forwards defined but not used
269; Pragma defined but not used
270; Proxy-Authenticate defined but not used
271; Proxy-Authorization defined but not used
272; Range defined but not used
273; Referer defined but not used
274; Retry-After defined but not used
275; Server defined but not used
276; TE defined but not used
277; Trailer defined but not used
278; Transfer-Encoding defined but not used
279; Upgrade defined but not used
280; User-Agent defined but not used
281; Vary defined but not used
282; Via defined but not used
283; WWW-Authenticate defined but not used
284; Warning defined but not used
285; chunked-body defined but not used
286; http-URI defined but not used
287; https-URI defined but not used
288; special defined but not used
Note: See TracBrowser for help on using the repository browser.