tech-invite   World Map     

IETF     RFCs     Groups     SIP     ABNFs    |    3GPP     Specs     Glossaries     Architecture     IMS     UICC    |    search

 

ABNF for HTTP/1.1 — Hypertext Transfer Protocol
RFCs 7230  ..31  ..32  ..33  ..34  ..35

 

Here          Top          Up          Prev          Next
(2 of 8)

|   Message Format   |   Headers   |   URIs and Request Target   |   Transfer Codings   |   Date‑Time   |   Range Units   |   Challenge‑Response Authentication   |   Miscellaneous   |

|   Accept   |   Accept‑Charset   |   Accept‑Encoding   |   Accept‑Language   |   Accept‑Ranges   |   Age   |   Allow   |   Authorization   |   Cache‑Control   |   Connection   |   Content‑Encoding   |   Content‑Language   |   Content‑Length   |   Content‑Location   |   Content‑Range   |   Content‑Type   |   Date   |   ETag   |   Expect   |   Expires   |   From   |   Host   |   If‑Match   |   If‑Modified‑Since   |   If‑None‑Match   |   If‑Range   |   If‑Unmodified‑Since   |   Last‑Modified   |   Location   |   Max‑Forwards   |   MIME‑Version   |   Pragma   |   Proxy‑Authenticate   |   Proxy‑Authorization   |   Range   |   Referer   |   Retry‑After   |   Server   |   TE   |   Trailer   |   Transfer‑Encoding   |   Upgrade   |   User‑Agent   |   Vary   |   Via   |   Warning   |   WWW‑Authenticate   |

 

see   RFC 7230 – Section 7   for the  #rule  ABNF List extension

 

HTTP/1.1 — Accept

RFC 7231 – Section 5.3.2


Accept   =
#( media-range   [ accept-params ] )

media-range   =
( "*/*"  /  ( type "/"   "*" )  /  ( type "/"   subtype ) )   *( OWS   ";"   OWS   parameter )

accept-params   =
weight   *( accept-ext )

accept-ext   =
OWS   ";"   OWS   token   [ "="   ( token    /  quoted‑string ) ]

Up

HTTP/1.1 — Accept‑Charset

RFC 7231 – Section 5.3.3


Accept-Charset   =
1#( ( charset  /  "*" )   [ weight ] )

Up

HTTP/1.1 — Accept‑Encoding

RFC 7231 – Section 5.3.4


Accept-Encoding   =
#( codings   [ weight ] )

codings   =
content-coding  /  "identity"  /  "*"

Up

HTTP/1.1 — Accept‑Language

RFC 7231 – Section 5.3.5


Accept-Language   =
1#( language-range   [ weight ] )

language-range   =
<language-range, see   RFC 4647Section 2.1>

Up

HTTP/1.1 — Accept‑Ranges

RFC 7233 – Section 2.3


Accept-Ranges   =
acceptable-ranges   =
1#range-unit  /  "none"

Up

HTTP/1.1 — Age

RFC 7234 – Section 5.1


Age   =

Up

HTTP/1.1 — Allow

RFC 7231 – Section 7.4.1


Allow   =

Up

HTTP/1.1 — Authorization

RFC 7235 – Section 4.2


Authorization   =

Up

HTTP/1.1 — Cache‑Control

RFC 7234 – Section 5.2


Cache-Control   =
cache-directive   =

Up

HTTP/1.1 — Connection

RFC 7230 – Section 6.1


Connection   =
connection-option   =

Up

HTTP/1.1 — Content‑Encoding

RFC 7231 – Section 3.1.2.2


Content-Encoding   =

Up

HTTP/1.1 — Content‑Language

RFC 7231 – Section 3.1.3.2


Content-Language   =

Up

HTTP/1.1 — Content‑Length

RFC 7230 – Section 3.3.2


Content-Length   =
1*DIGIT

Up

HTTP/1.1 — Content‑Location

RFC 7231 – Section 3.1.4.2


Content-Location   =

Up

HTTP/1.1 — Content‑Range

RFC 7233 – Section 4.2


Content-Range   =
byte-content-range   =
bytes-unit   SP   ( byte-range-resp    /  unsatisfied-range )

byte-range-resp   =
byte-range   "/"   ( complete-length  /  "*" )

byte-range   =
unsatisfied-range   =
"*/"   complete-length

complete-length   =
1*DIGIT

other-content-range   =
other-range-resp   =
*CHAR

Up

HTTP/1.1 — Content‑Type

RFC 7231 – Section 3.1.1.5


Content-Type   =

Up

HTTP/1.1 — Date

RFC 7231 – Section 7.1.1.2


Date   =

Up

HTTP/1.1 — ETag

RFC 7232 – Section 2.3


ETag   =
entity-tag   =
weak ]   opaque-tag

weak   =
%x57.2F
; "W/", case-sensitive

opaque-tag   =
DQUOTE   *etagc   DQUOTE

etagc   =
%x21  /  %x23-7E  /  obs-text
; VCHAR except double quotes, plus obs-text

Up

HTTP/1.1 — Expect

RFC 7231 – Section 5.1.1


Expect   =
"100-continue"

Up

HTTP/1.1 — Expires

RFC 7234 – Section 5.3


Expires   =

Up

HTTP/1.1 — From

RFC 7231 – Section 5.5.1


From   =

Up

HTTP/1.1 — Host

RFC 7230 – Section 5.4


Host   =
uri-host   [ ":"   port ]

Up

HTTP/1.1 — If‑Match

RFC 7232 – Section 3.1


If-Match   =
"*"  /  1#entity-tag

Up

HTTP/1.1 — If‑Modified‑Since

RFC 7232 – Section 3.3


If-Modified-Since   =

Up

HTTP/1.1 — If‑None‑Match

RFC 7232 – Section 3.2


If-None-Match   =
"*"  /  1#entity-tag

Up

HTTP/1.1 — If‑Range

RFC 7233 – Section 3.2


If-Range   =

Up

HTTP/1.1 — If‑Unmodified‑Since

RFC 7232 – Section 3.4


If-Unmodified-Since   =

Up

HTTP/1.1 — Last‑Modified

RFC 7232 – Section 2.2


Last-Modified   =

Up

HTTP/1.1 — Location

RFC 7231 – Section 7.1.2


Location   =

Up

HTTP/1.1 — Max‑Forwards

RFC 7231 – Section 5.1.2


Max-Forwards   =
1*DIGIT

Up

HTTP/1.1 — MIME‑Version

RFC 7231 – Appendix A.1

 

Up

HTTP/1.1 — Pragma

RFC 7234 – Section 5.4


Pragma   =
pragma-directive   =
"no-cache"  /  extension-pragma

extension-pragma   =
token   [ "="   ( token  /  quoted‑string ) ]

Up

HTTP/1.1 — Proxy‑Authenticate

RFC 7235 – Section 4.3


Proxy-Authenticate   =

Up

HTTP/1.1 — Proxy‑Authorization

RFC 7235 – Section 4.4


Proxy-Authorization   =

Up

HTTP/1.1 — Range

RFC 7233 – Section 3.1


Range   =
other-ranges-specifier   =
other-range-set   =
1*VCHAR

Up

HTTP/1.1 — Referer

RFC 7231 – Section 5.5.2


Referer   =

Up

HTTP/1.1 — Retry‑After

RFC 7231 – Section 7.1.3


Retry-After   =
delay-seconds   =
1*DIGIT

Up

HTTP/1.1 — Server

RFC 7231 – Section 7.4.2


Server   =
product   *( RWS   ( product  /  comment ) )

Up

HTTP/1.1 — TE

RFC 7230 – Section 4.3


TE   =
t-codings   =
"trailers"    /  (  transfer-coding   [ t-ranking ]  )

t-ranking   =
OWS   ";"   OWS   "q="   rank  

rank   =
(  "0"   [ "."   0*3DIGIT ]  )  /  (  "1"   [ "."   0*3( "0" ) ]  )

Up

HTTP/1.1 — Trailer

RFC 7230 – Section 4.4


Trailer   =

Up

HTTP/1.1 — Transfer‑Encoding

RFC 7230 – Section 3.3.1


Transfer-Encoding   =

Up

HTTP/1.1 — Upgrade

RFC 7230 – Section 6.7


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

protocol-name   =
protocol-version   =

Up

HTTP/1.1 — User‑Agent

RFC 7231 – Section 5.5.3


User-Agent   =
product   *( RWS   ( product  /  comment ) )

product   =
token   [ "/"   product-version ]

product-version   =

Up

HTTP/1.1 — Vary

RFC 7231 – Section 7.1.4


Vary   =
"*"  /  1#field-name

Up

HTTP/1.1 — Via

RFC 7230 – Section 5.7.1


Via   =
1#( received-protocol   RWS   received-by   [ RWS   comment ] )

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

received-by   =
uri-host   [ ":"   port ] )    /  pseudonym

pseudonym   =

Up

HTTP/1.1 — Warning

RFC 7234 – Section 5.5


Warning   =
warning-value   =
warn-code   SP   warn-agent   SP   warn-text   [ SP   warn-date ]

warn-code   =
3DIGIT
; 110   Response is Stale   Section 5.5.1
; 111   Revalidation Failed   Section 5.5.2
; 112   Disconnected Operation   Section 5.5.3
; 113   Heuristic Expiration   Section 5.5.4
; 199   Miscellaneous Warning   Section 5.5.5
; 214   Transformation Applied   Section 5.5.6
; 299   Miscellaneous Persistent Warning   Section 5.5.7

warn-agent   =
uri-host   [ ":"   port ] )  /  pseudonym

warn-text   =
warn-date   =

Up

HTTP/1.1 — WWW‑Authenticate

RFC 7235 – Section 4.1


WWW-Authenticate   =

Up