@@ -191,53 +191,53 @@ msgid ""
191191"Sets the terminating condition to be recognized on the channel. ``term`` "
192192"may be any of three types of value, corresponding to three different ways to"
193193" handle incoming protocol data."
194- msgstr ""
194+ msgstr "设置可在通道上被识别的终结条件。 ``term`` 可以是三种类型值中的任意一种 ,对应于处理入站协议数据的三种不同方式。 "
195195
196196#: ../../library/asynchat.rst:137
197197msgid "term"
198- msgstr ""
198+ msgstr "term "
199199
200200#: ../../library/asynchat.rst:137
201201msgid "Description"
202202msgstr "描述"
203203
204204#: ../../library/asynchat.rst:139
205205msgid "*string*"
206- msgstr ""
206+ msgstr "*string* "
207207
208208#: ../../library/asynchat.rst:139
209209msgid ""
210210"Will call :meth:`found_terminator` when the string is found in the input "
211211"stream"
212- msgstr ""
212+ msgstr "当在输入流中发现该字符串时将会调用 :meth:`found_terminator` "
213213
214214#: ../../library/asynchat.rst:142
215215msgid "*integer*"
216- msgstr ""
216+ msgstr "*integer* "
217217
218218#: ../../library/asynchat.rst:142
219219msgid ""
220220"Will call :meth:`found_terminator` when the indicated number of characters "
221221"have been received"
222- msgstr ""
222+ msgstr "当接收到指定数量的字符时将会调用 :meth:`found_terminator` "
223223
224224#: ../../library/asynchat.rst:146
225225msgid "``None``"
226226msgstr "``None``"
227227
228228#: ../../library/asynchat.rst:146
229229msgid "The channel continues to collect data forever"
230- msgstr ""
230+ msgstr "通道会不断地持续收集数据 "
231231
232232#: ../../library/asynchat.rst:150
233233msgid ""
234234"Note that any data following the terminator will be available for reading by"
235235" the channel after :meth:`found_terminator` is called."
236- msgstr ""
236+ msgstr "请注意终结器之后的任何数据将可在 :meth:`found_terminator` 被调用后由通道来读取。 "
237237
238238#: ../../library/asynchat.rst:157
239239msgid "asynchat Example"
240- msgstr ""
240+ msgstr "asynchat 示例 "
241241
242242#: ../../library/asynchat.rst:159
243243msgid ""
@@ -248,6 +248,9 @@ msgid ""
248248"at the end of the HTTP headers, and a flag indicates that the headers are "
249249"being read."
250250msgstr ""
251+ "下面的例子片段显示了如何通过 :class:`async_chat` 来读取 HTTP 请求。 Web 服务器可以为每个入站的客户端连接创建 "
252+ ":class:`http_request_handler` 对象。 请注意在初始时通道终结器会被设置为匹配 HTTP "
253+ "标头末尾的空行,并且会用一个旗标来指明标头正在被读取。"
251254
252255#: ../../library/asynchat.rst:166
253256msgid ""
@@ -256,10 +259,14 @@ msgid ""
256259"Length:`` header is used to set a numeric terminator to read the right "
257260"amount of data from the channel."
258261msgstr ""
262+ "一旦完成了标头的读取,如果请求类型为 POST (表明输入流中存在更多的数据) 则会使用 ``Content-Length:`` "
263+ "标头来设置一个数值终结器以从通道读取适当数量的数据。"
259264
260265#: ../../library/asynchat.rst:171
261266msgid ""
262267"The :meth:`handle_request` method is called once all relevant input has been"
263268" marshalled, after setting the channel terminator to ``None`` to ensure that"
264269" any extraneous data sent by the web client are ignored. ::"
265270msgstr ""
271+ "一旦完成了对所有相关输入的处理,将会在设置通道终结器为 ``None`` 以确保忽略掉 Web 客户端所发送的任何无关数据之后调用 "
272+ ":meth:`handle_request` 方法。 ::"
0 commit comments