File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -244,23 +244,28 @@ msgid ""
244244"*message* key in an error response, and *longmessage* as the *explain* key."
245245" It is used by :meth:`send_response_only` and :meth:`send_error` methods."
246246msgstr ""
247+ "该属性包含一个整数错误代码与由短消息和长消息组成的二元组的映射。 例如,``{code: (shortmessage, longmessage)}``。"
248+ " *shortmessage* 通常是作为消息响应中的 *message* 键,而 *longmessage* 则是作为 *explain* 键。 "
249+ "该属性会被 :meth:`send_response_only` 和 :meth:`send_error` 方法所使用。"
247250
248251#: ../../library/http.server.rst:177
249252msgid "A :class:`BaseHTTPRequestHandler` instance has the following methods:"
250- msgstr ""
253+ msgstr ":class:`BaseHTTPRequestHandler` 实例具有下列方法: "
251254
252255#: ../../library/http.server.rst:181
253256msgid ""
254257"Calls :meth:`handle_one_request` once (or, if persistent connections are "
255258"enabled, multiple times) to handle incoming HTTP requests. You should never "
256259"need to override it; instead, implement appropriate :meth:`do_\\ *` methods."
257260msgstr ""
261+ "调用 :meth:`handle_one_request` 一次(或者如果启用了永久连接则为多次)来处理传入的 HTTP 请求。 "
262+ "你应该完全不需要重载它;而是要实现适当的 :meth:`do_\\ *` 方法。"
258263
259264#: ../../library/http.server.rst:188
260265msgid ""
261266"This method will parse and dispatch the request to the appropriate "
262267":meth:`do_\\ *` method. You should never need to override it."
263- msgstr ""
268+ msgstr "此方法将解析并将请求分配给适当的 :meth:`do_ \\ *` 方法。 你应该完全不需要重载它。 "
264269
265270#: ../../library/http.server.rst:193
266271msgid ""
You can’t perform that action at this time.
0 commit comments