<"> 在 RFC 中是什么意思?`#1` 呢?

What does <"> mean in an RFC? What about `#1`?

在这个 RFC 中:https://www.rfc-editor.org/rfc/rfc2617#page-8 我们有这个:

3.2.1 The WWW-Authenticate Response Header

If a server receives a request for an access-protected object, and an acceptable Authorization header is not sent, the server responds with a "401 Unauthorized" status code, and a WWW-Authenticate header as per the framework defined above, which for the digest scheme is utilized as follows:

  challenge        =  "Digest" digest-challenge

  digest-challenge  = 1#( realm | [ domain ] | nonce |
                      [ opaque ] |[ stale ] | [ algorithm ] |
                      [ qop-options ] | [auth-param] )


  domain            = "domain" "=" <"> URI ( 1*SP URI ) <">
  URI               = absoluteURI | abs_path
  nonce             = "nonce" "=" nonce-value
  nonce-value       = quoted-string
  opaque            = "opaque" "=" quoted-string
  stale             = "stale" "=" ( "true" | "false" )
  algorithm         = "algorithm" "=" ( "MD5" | "MD5-sess" |
                       token )
  qop-options       = "qop" "=" <"> 1#qop-value <">
  qop-value         = "auth" | "auth-int" | token

The meanings of the values of the directives used above are as

理解为|表示串联,[]表示该事物可以出现也可以不出现。 1# 是什么意思? <">1*SP 呢? 在 RFC 开头没有对这些进行解释。

  1. 您正在查看过时的文档。对于这篇文章,您应该查看 RFC 7235。

  2. ABNF 在 RFC 5234 中定义(带有来自 RFC 7231 的扩展)。您应该根据 RFC 7235 中的“语法表示法”部分找到这些参考资料。

(对于 FWIW,RFC 2617 也指向定义,请参阅第 1.1 节)。