@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.14\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-04-03 14:38 +0000\n "
14+ "POT-Creation-Date : 2026-04-17 14:50 +0000\n "
1515"PO-Revision-Date : 2025-09-16 00:01+0000\n "
1616"Last-Translator : python-doc bot, 2025\n "
1717"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -150,16 +150,10 @@ msgstr ""
150150msgid ""
151151"This class is used to handle the HTTP requests that arrive at the server. "
152152"By itself, it cannot respond to any actual HTTP requests; it must be "
153- "subclassed to handle each request method (e.g. GET or POST). :class: "
154- "`BaseHTTPRequestHandler` provides a number of class and instance variables, "
155- "and methods for use by subclasses."
153+ "subclassed to handle each request method (for example, ``' GET'`` or "
154+ "``'POST'``). :class:` BaseHTTPRequestHandler` provides a number of class and "
155+ "instance variables, and methods for use by subclasses."
156156msgstr ""
157- "このクラスはサーバに到着したリクエストを処理します。\n"
158- "このメソッド自体では、実際のリクエストに応答することはできません; (GET や "
159- "POST のような) 各リクエストメソッドを処理するためにはサブクラス化しなければな"
160- "りません。\n"
161- ":class:`BaseHTTPRequestHandler` では、サブクラスで使うためのクラスやインスタ"
162- "ンス変数、メソッド群を数多く提供しています。"
163157
164158#: ../../library/http.server.rst:106
165159msgid ""
@@ -348,15 +342,9 @@ msgid ""
348342"When an HTTP/1.1 conformant server receives an ``Expect: 100-continue`` "
349343"request header it responds back with a ``100 Continue`` followed by ``200 "
350344"OK`` headers. This method can be overridden to raise an error if the server "
351- "does not want the client to continue. For e.g. server can choose to send "
352- "``417 Expectation Failed`` as a response header and ``return False``."
345+ "does not want the client to continue. For example, the server can choose to "
346+ "send ``417 Expectation Failed`` as a response header and ``return False``."
353347msgstr ""
354- "HTTP/1.1 準拠のサーバが ``Expect: 100-continue`` リクエストヘッダを受け取った"
355- "とき、 ``100 Continue`` を返し、その後に ``200 OK`` がきます。\n"
356- "このメソッドは、サーバがクライアントに継続を要求しない場合、エラーを送出する"
357- "ようにオーバーライドできます。\n"
358- "例えば、サーバはレスポンスヘッダとして ``417 Expectation Failed`` を送る選択"
359- "をし、 ``return False`` とできます。"
360348
361349#: ../../library/http.server.rst:251
362350msgid ""
@@ -765,140 +753,136 @@ msgstr "コマンドライン・インターフェース"
765753msgid ""
766754":mod:`!http.server` can also be invoked directly using the :option:`-m` "
767755"switch of the interpreter. The following example illustrates how to serve "
768- "files relative to the current directory:: "
756+ "files relative to the current directory:"
769757msgstr ""
770758
771759#: ../../library/http.server.rst:523
772760msgid "python -m http.server [OPTIONS] [port]"
773761msgstr ""
774762
775- #: ../../library/http.server.rst:525
763+ #: ../../library/http.server.rst:527
776764msgid "The following options are accepted:"
777765msgstr "以下のオプションが使用できます:"
778766
779- #: ../../library/http.server.rst:531
767+ #: ../../library/http.server.rst:533
780768msgid ""
781769"The server listens to port 8000 by default. The default can be overridden by "
782- "passing the desired port number as an argument:: "
770+ "passing the desired port number as an argument:"
783771msgstr ""
784772
785- #: ../../library/http.server.rst:534
773+ #: ../../library/http.server.rst:536
786774msgid "python -m http.server 9000"
787775msgstr ""
788776
789- #: ../../library/http.server.rst:538
777+ #: ../../library/http.server.rst:542
790778msgid ""
791779"Specifies a specific address to which it should bind. Both IPv4 and IPv6 "
792780"addresses are supported. By default, the server binds itself to all "
793781"interfaces. For example, the following command causes the server to bind to "
794- "localhost only:: "
782+ "localhost only:"
795783msgstr ""
796784
797- #: ../../library/http.server.rst:543
785+ #: ../../library/http.server.rst:547
798786msgid "python -m http.server --bind 127.0.0.1"
799787msgstr ""
800788
801- #: ../../library/http.server.rst:547
789+ #: ../../library/http.server.rst:553
802790msgid "Support IPv6 in the ``--bind`` option."
803791msgstr ""
804792
805- #: ../../library/http.server.rst:552
793+ #: ../../library/http.server.rst:558
806794msgid ""
807795"Specifies a directory to which it should serve the files. By default, the "
808796"server uses the current directory. For example, the following command uses a "
809- "specific directory:: "
797+ "specific directory:"
810798msgstr ""
811799
812- #: ../../library/http.server.rst:556
800+ #: ../../library/http.server.rst:562
813801msgid "python -m http.server --directory /tmp/"
814802msgstr ""
815803
816- #: ../../library/http.server.rst:562
804+ #: ../../library/http.server.rst:570
817805msgid ""
818806"Specifies the HTTP version to which the server is conformant. By default, "
819807"the server is conformant to HTTP/1.0. For example, the following command "
820- "runs an HTTP/1.1 conformant server:: "
808+ "runs an HTTP/1.1 conformant server:"
821809msgstr ""
822810
823- #: ../../library/http.server.rst:566
811+ #: ../../library/http.server.rst:574
824812msgid "python -m http.server --protocol HTTP/1.1"
825813msgstr ""
826814
827- #: ../../library/http.server.rst:572
815+ #: ../../library/http.server.rst:582
828816msgid ""
829817":class:`CGIHTTPRequestHandler` can be enabled in the command line by passing "
830818"the ``--cgi`` option::"
831819msgstr ""
832820
833- #: ../../library/http.server.rst:575
821+ #: ../../library/http.server.rst:585
834822msgid "python -m http.server --cgi"
835823msgstr ""
836824
837- #: ../../library/http.server.rst:579
825+ #: ../../library/http.server.rst:589
838826msgid ""
839827":mod:`!http.server` command line ``--cgi`` support is being removed because :"
840828"class:`CGIHTTPRequestHandler` is being removed."
841829msgstr ""
842830
843- #: ../../library/http.server.rst:584
831+ #: ../../library/http.server.rst:594
844832msgid ""
845833":class:`CGIHTTPRequestHandler` and the ``--cgi`` command-line option are not "
846834"intended for use by untrusted clients and may be vulnerable to exploitation. "
847835"Always use within a secure environment."
848836msgstr ""
849837
850- #: ../../library/http.server.rst:590
851- msgid "Specifies a TLS certificate chain for HTTPS connections:: "
838+ #: ../../library/http.server.rst:600
839+ msgid "Specifies a TLS certificate chain for HTTPS connections:"
852840msgstr ""
853841
854- #: ../../library/http.server.rst:592
842+ #: ../../library/http.server.rst:602
855843msgid "python -m http.server --tls-cert fullchain.pem"
856844msgstr ""
857845
858- #: ../../library/http.server.rst:598
846+ #: ../../library/http.server.rst:610
859847msgid "Specifies a private key file for HTTPS connections."
860848msgstr ""
861849
862- #: ../../library/http.server.rst:600
850+ #: ../../library/http.server.rst:612 ../../library/http.server.rst:627
863851msgid "This option requires ``--tls-cert`` to be specified."
864852msgstr ""
865853
866- #: ../../library/http.server.rst:606
867- msgid "Specifies the password file for password-protected private keys:: "
854+ #: ../../library/http.server.rst:618
855+ msgid "Specifies the password file for password-protected private keys:"
868856msgstr ""
869857
870- #: ../../library/http.server.rst:608
858+ #: ../../library/http.server.rst:620
871859msgid ""
872860"python -m http.server \\ \n"
873861" --tls-cert cert.pem \\ \n"
874862" --tls-key key.pem \\ \n"
875863" --tls-password-file password.txt"
876864msgstr ""
877865
878- #: ../../library/http.server.rst:613
879- msgid "This option requires `--tls-cert`` to be specified."
880- msgstr ""
881-
882- #: ../../library/http.server.rst:621
866+ #: ../../library/http.server.rst:635
883867msgid "Security considerations"
884868msgstr "セキュリティで考慮すべき点"
885869
886- #: ../../library/http.server.rst:625
870+ #: ../../library/http.server.rst:639
887871msgid ""
888872":class:`SimpleHTTPRequestHandler` will follow symbolic links when handling "
889873"requests, this makes it possible for files outside of the specified "
890874"directory to be served."
891875msgstr ""
892876
893- #: ../../library/http.server.rst:629
877+ #: ../../library/http.server.rst:643
894878msgid ""
895879"Methods :meth:`BaseHTTPRequestHandler.send_header` and :meth:"
896- "`BaseHTTPRequestHandler.send_response_only` assume sanitized input and does "
880+ "`BaseHTTPRequestHandler.send_response_only` assume sanitized input and do "
897881"not perform input validation such as checking for the presence of CRLF "
898882"sequences. Untrusted input may result in HTTP Header injection attacks."
899883msgstr ""
900884
901- #: ../../library/http.server.rst:634
885+ #: ../../library/http.server.rst:648
902886msgid ""
903887"Earlier versions of Python did not scrub control characters from the log "
904888"messages emitted to stderr from ``python -m http.server`` or the default :"
@@ -907,7 +891,7 @@ msgid ""
907891"codes to your terminal."
908892msgstr ""
909893
910- #: ../../library/http.server.rst:640
894+ #: ../../library/http.server.rst:654
911895msgid "Control characters are scrubbed in stderr logs."
912896msgstr ""
913897
@@ -935,10 +919,10 @@ msgstr "URL"
935919msgid "httpd"
936920msgstr ""
937921
938- #: ../../library/http.server.rst:623
922+ #: ../../library/http.server.rst:637
939923msgid "http.server"
940924msgstr "http.server"
941925
942- #: ../../library/http.server.rst:623
926+ #: ../../library/http.server.rst:637
943927msgid "security"
944928msgstr "セキュリティ"
0 commit comments