python-docs-fr/library/simplehttpserver.po

158 lines
5.4 KiB
Plaintext

# SOME DESCRIPTIVE TITLE.
# Copyright (C) 1990-2016, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 2.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-10-30 10:44+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../Doc/library/simplehttpserver.rst:3
msgid ":mod:`SimpleHTTPServer` --- Simple HTTP request handler"
msgstr ""
#: ../Doc/library/simplehttpserver.rst:10
msgid ""
"The :mod:`SimpleHTTPServer` module has been merged into :mod:`http.server` "
"in Python 3. The :term:`2to3` tool will automatically adapt imports when "
"converting your sources to Python 3."
msgstr ""
#: ../Doc/library/simplehttpserver.rst:15
msgid ""
"The :mod:`SimpleHTTPServer` module defines a single class, :class:"
"`SimpleHTTPRequestHandler`, which is interface-compatible with :class:"
"`BaseHTTPServer.BaseHTTPRequestHandler`."
msgstr ""
#: ../Doc/library/simplehttpserver.rst:19
msgid "The :mod:`SimpleHTTPServer` module defines the following class:"
msgstr ""
#: ../Doc/library/simplehttpserver.rst:24
msgid ""
"This class serves files from the current directory and below, directly "
"mapping the directory structure to HTTP requests."
msgstr ""
#: ../Doc/library/simplehttpserver.rst:27
msgid ""
"A lot of the work, such as parsing the request, is done by the base class :"
"class:`BaseHTTPServer.BaseHTTPRequestHandler`. This class implements the :"
"func:`do_GET` and :func:`do_HEAD` functions."
msgstr ""
#: ../Doc/library/simplehttpserver.rst:31
msgid ""
"The following are defined as class-level attributes of :class:"
"`SimpleHTTPRequestHandler`:"
msgstr ""
#: ../Doc/library/simplehttpserver.rst:37
msgid ""
"This will be ``\"SimpleHTTP/\" + __version__``, where ``__version__`` is "
"defined at the module level."
msgstr ""
#: ../Doc/library/simplehttpserver.rst:43
msgid ""
"A dictionary mapping suffixes into MIME types. The default is signified by "
"an empty string, and is considered to be ``application/octet-stream``. The "
"mapping is used case-insensitively, and so should contain only lower-cased "
"keys."
msgstr ""
#: ../Doc/library/simplehttpserver.rst:48
msgid ""
"The :class:`SimpleHTTPRequestHandler` class defines the following methods:"
msgstr ""
#: ../Doc/library/simplehttpserver.rst:53
msgid ""
"This method serves the ``'HEAD'`` request type: it sends the headers it "
"would send for the equivalent ``GET`` request. See the :meth:`do_GET` method "
"for a more complete explanation of the possible headers."
msgstr ""
#: ../Doc/library/simplehttpserver.rst:60
msgid ""
"The request is mapped to a local file by interpreting the request as a path "
"relative to the current working directory."
msgstr ""
#: ../Doc/library/simplehttpserver.rst:63
msgid ""
"If the request was mapped to a directory, the directory is checked for a "
"file named ``index.html`` or ``index.htm`` (in that order). If found, the "
"file's contents are returned; otherwise a directory listing is generated by "
"calling the :meth:`list_directory` method. This method uses :func:`os."
"listdir` to scan the directory, and returns a ``404`` error response if the :"
"func:`listdir` fails."
msgstr ""
#: ../Doc/library/simplehttpserver.rst:70
msgid ""
"If the request was mapped to a file, it is opened and the contents are "
"returned. Any :exc:`IOError` exception in opening the requested file is "
"mapped to a ``404``, ``'File not found'`` error. Otherwise, the content type "
"is guessed by calling the :meth:`guess_type` method, which in turn uses the "
"*extensions_map* variable."
msgstr ""
#: ../Doc/library/simplehttpserver.rst:76
msgid ""
"A ``'Content-type:'`` header with the guessed content type is output, "
"followed by a ``'Content-Length:'`` header with the file's size and a "
"``'Last-Modified:'`` header with the file's modification time."
msgstr ""
#: ../Doc/library/simplehttpserver.rst:80
msgid ""
"Then follows a blank line signifying the end of the headers, and then the "
"contents of the file are output. If the file's MIME type starts with ``text/"
"`` the file is opened in text mode; otherwise binary mode is used."
msgstr ""
#: ../Doc/library/simplehttpserver.rst:84
msgid ""
"The :func:`test` function in the :mod:`SimpleHTTPServer` module is an "
"example which creates a server using the :class:`SimpleHTTPRequestHandler` "
"as the Handler."
msgstr ""
#: ../Doc/library/simplehttpserver.rst:88
msgid "The ``'Last-Modified'`` header."
msgstr ""
#: ../Doc/library/simplehttpserver.rst:92
msgid ""
"The :mod:`SimpleHTTPServer` module can be used in the following manner in "
"order to set up a very basic web server serving files relative to the "
"current directory. ::"
msgstr ""
#: ../Doc/library/simplehttpserver.rst:108
msgid ""
"The :mod:`SimpleHTTPServer` module can also be invoked directly using the :"
"option:`-m` switch of the interpreter with a ``port number`` argument. "
"Similar to the previous example, this serves the files relative to the "
"current directory. ::"
msgstr ""
#: ../Doc/library/simplehttpserver.rst:117
msgid "Module :mod:`BaseHTTPServer`"
msgstr ""
#: ../Doc/library/simplehttpserver.rst:118
msgid "Base class implementation for Web server and request handler."
msgstr ""