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變體。

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