RFC6455-The WebSocket protocol 之二:Conformance Requirements

2.Conformance Requirements 

第二章、一致性要求

All diagrams, examples, and notes in this specification are non-

normative, as are all sections explicitly marked non-normative.

Everything else in this specification is normative.

本说明书中所有被明确标记为“非标准”的图表、示例、注释以及其它部分,都是非标准的。本说明书中的其它内容都是标准的。


The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [RFC2119].

本文中的关键字:"MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL"与 [RFC2119]中描述的意思是一致的。


Requirements phrased in the imperative as part of algorithms (such as
"strip any leading space characters" or "return false and abort these
steps") are to be interpreted with the meaning of the key word
("MUST", "SHOULD", "MAY", etc.) used in introducing the algorithm.

必要性的措辞作为算法的一部分(比如“去掉所有前置的空格” 或者 “返回false并终止该步骤”),同介绍算法时用到的关键字("MUST", "SHOULD", "MAY", etc.)的含义是一致的。


Conformance requirements phrased as algorithms or specific steps MAY
be implemented in any manner, so long as the end result is
equivalent. (In particular, the algorithms defined in this
specification are intended to be easy to follow and not intended to
be performant.)

作为算法或特别步骤的一致性要求措辞可以有多重实现方式,但是最终结果是一样的。(特别的是,该说明书中定义的算法为了容易理解而忽略了高性能。)


2.1. Terminology and Other Conventions

术语和约定。


_ASCII_ shall mean the character-encoding scheme defined in
[ANSI.X3-4.1986].

_ASCII_ 的意思是[ANSI.X3-4.1986]中定义的字符编码格式。


This document makes reference to UTF-8 values and uses UTF-8
notational formats as defined in STD 63 [RFC3629].

本文引用了UTF-8值并像STD 63 [RFC3629]中定义中的一样使用URF-8的格式。


Key terms such as named algorithms or definitions are indicated like
_this_.

关键字比如明明算法或定义表示为:_this_


Names of header fields or variables are indicated like |this|.

头字段或变量的名称表示为:|this|。


Variable values are indicated like /this/.

变量的值表示为: /this/


This document references the procedure to _Fail the WebSocket
Connection_. This procedure is defined in Section 7.1.7.

本文提到了释放连接的过程,该过程是在7.1.7章中定义的。


_Converting a string to ASCII lowercase_ means replacing all
characters in the range U+0041 to U+005A (i.e., LATIN CAPITAL LETTER
A to LATIN CAPITAL LETTER Z) with the corresponding characters in the
range U+0061 to U+007A (i.e., LATIN SMALL LETTER A to LATIN SMALL
LETTER Z).

把字符串转换成ASCII 小写形式的意思是把 U+0041 to U+005A范围中的字符替换为U+0061 to U+007A范围中对应的字符。



Comparing two strings in an _ASCII case-insensitive_ manner means
comparing them exactly, code point for code point, except that the
characters in the range U+0041 to U+005A (i.e., LATIN CAPITAL LETTER
A to LATIN CAPITAL LETTER Z) and the corresponding characters in the
range U+0061 to U+007A (i.e., LATIN SMALL LETTER A to LATIN SMALL
LETTER Z) are considered to also match.

以ASCII大小写不敏感的形式比较两个字符串的意思是按照字符精确的进行比较,除了一种情况:在U+0041 to U+005A范围中的字符与U+0061 to U+007A范围中对应的字符也认为是匹配的。



The term "URI" is used in this document as defined in [RFC3986].
When an implementation is required to _send_ data as part of the
WebSocket Protocol, the implementation MAY delay the actual
transmission arbitrarily, e.g., buffering data so as to send fewer IP
packets.

本文中用到的术语“URI”同[RFC3986]中定义的是一致的。

当WebSocket Protocol需要发送数据的实现时,该实现有可能会随意延迟实时的传输,例如,为了减少发送的ip包而缓冲数据。


Note that this document uses both [RFC5234] and [RFC2616] variants of
ABNF in different sections.

注意,在不同的章节里,本文即用到了 [RFC5234]的ABNF变体,又用到了 [RFC2616]的ABNF变体。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章