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