]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix doc references to HTTPRequest.
authorBen Darnell <ben@bendarnell.com>
Sun, 23 Feb 2014 20:57:18 +0000 (15:57 -0500)
committerBen Darnell <ben@bendarnell.com>
Sun, 23 Feb 2014 20:57:18 +0000 (15:57 -0500)
12 files changed:
docs/httpserver.rst
docs/overview.rst
docs/releases/v2.1.0.rst
docs/releases/v2.3.0.rst
docs/releases/v3.0.0.rst
docs/releases/v3.1.0.rst
docs/releases/v3.2.0.rst
docs/web.rst
tornado/httpserver.py
tornado/httputil.py
tornado/web.py
tornado/wsgi.py

index 4498d0911dfa085297d938b4f829775005d561ea..88c74376bdd0704ee7d9d7b0c028cd53a1c9a5a5 100644 (file)
@@ -3,15 +3,7 @@
 
 .. automodule:: tornado.httpserver
 
-   ``HTTPRequest`` objects
-   -----------------------
-   .. autoclass:: HTTPRequest
-      :members:
-
    HTTP Server
    -----------
    .. autoclass:: HTTPServer
       :members:
-
-   .. autoclass:: HTTPConnection
-      :members:
index 0ccbbcb33fdc27b5e1d0d882a8b25a8cb9f07083..438dd657cf0e5e6f322d8d114bdf5cb886298120 100644 (file)
@@ -115,7 +115,7 @@ number of useful attributes, including:
 -  ``path`` - the request path (everything before the ``?``)
 -  ``headers`` - the request headers
 
-See the class definition for `tornado.httpserver.HTTPRequest` for a
+See the class definition for `tornado.httputil.HTTPServerRequest` for a
 complete list of attributes.
 
 Overriding RequestHandler methods
index c569be9edc008763a04301e7f3a1f1ca15a9d03c..9006f116d1c203b74f4afad7a1dc01e545d0f3f4 100644 (file)
@@ -67,7 +67,7 @@ New modules
 * To facilitate some advanced multi-process scenarios, ``HTTPServer``
   has a new method ``add_sockets``, and socket-opening code is
   available separately as `tornado.netutil.bind_sockets`.
-* The ``cookies`` property is now available on `tornado.httpserver.HTTPRequest`
+* The ``cookies`` property is now available on ``tornado.httpserver.HTTPRequest``
   (it is also available in its old location as a property of
   `~tornado.web.RequestHandler`)
 * ``tornado.httpserver.HTTPServer.bind`` now takes a backlog argument with the
index 5d7674d3625c7c93cfa3e899f313e4df6cb31c89..368ceec964dce865241b552caea782f10fd910c6 100644 (file)
@@ -30,7 +30,7 @@ HTTP Server
 * `.HTTPServer` now works correctly with paths starting with ``//``
 * ``HTTPHeaders.copy`` (inherited from `dict.copy`) now works correctly.
 * ``HTTPConnection.address`` is now always the socket address, even for non-IP
-  sockets.  `.HTTPRequest.remote_ip` is still always an IP-style address
+  sockets.  ``HTTPRequest.remote_ip`` is still always an IP-style address
   (fake data is used for non-IP sockets)
 * Extra data at the end of multipart form bodies is now ignored, which fixes
   a compatibility problem with an iOS HTTP client library.
index e618641f573b76506ba719d0cbe1ad5ba5e49252..b96f892419cd3d498fae6822d2642136e40257b6 100644 (file)
@@ -177,7 +177,7 @@ Multiple modules
 * `.HTTPServer` now takes a ``protocol`` keyword argument which can be set
   to ``https`` if the server is behind an SSL-decoding proxy that does not
   set any supported X-headers.
-* `tornado.httpserver.HTTPConnection` now has a ``set_close_callback``
+* ``tornado.httpserver.HTTPConnection`` now has a ``set_close_callback``
   method that should be used instead of reaching into its ``stream``
   attribute.
 * Empty HTTP request arguments are no longer ignored.  This applies to
index 7b06092716e6baf976be154cfc06d0e3d9da6f53..edbf39dba68bc1637b11f9bcc084cf170ce3faea 100644 (file)
@@ -78,7 +78,7 @@ Multiple modules
   HTTP 1.0 connections that explicitly pass ``Connection: keep-alive``.
 * The ``Connection: keep-alive`` check for HTTP 1.0 connections is now
   case-insensitive.
-* The `str` and `repr` of `tornado.httpserver.HTTPRequest` no longer
+* The `str` and `repr` of ``tornado.httpserver.HTTPRequest`` no longer
   include the request body, reducing log spam on errors (and potential
   exposure/retention of private data).
 
index 7e5299e9f21d0bc0f44c77a90c06e4527a8d9540..5f2a694c89547d943d29f7b8294dfaea1c69152e 100644 (file)
@@ -156,7 +156,7 @@ New modules
   individual aspects of debug mode.
 * New methods `.RequestHandler.get_query_argument` and
   `.RequestHandler.get_body_argument` and new attributes
-  `.HTTPRequest.query_arguments` and `.HTTPRequest.body_arguments` allow access
+  ``HTTPRequest.query_arguments`` and ``HTTPRequest.body_arguments`` allow access
   to arguments without intermingling those from the query string with those
   from the request body.
 * `.RequestHandler.decode_argument` and related methods now raise
index 104f686ebd49c2b144682aa2d3eabb85b821275a..52c74501b17b2192cdbe42cc8ffdb6cdecff1717 100644 (file)
@@ -40,7 +40,7 @@
    .. automethod:: RequestHandler.decode_argument
    .. attribute:: RequestHandler.request
 
-      The `tornado.httpserver.HTTPRequest` object containing additional
+      The `tornado.httputil.HTTPServerRequest` object containing additional
       request parameters including e.g. headers and body data.
 
    .. attribute:: RequestHandler.path_args
index 42f10c8b6fbd3b34eab693053a8edbf7c9495427..e30bc32f5ef1fff6377e8d3a167f43316eb427a7 100644 (file)
@@ -20,8 +20,10 @@ Typical applications have little direct interaction with the `HTTPServer`
 class except to start a server at the beginning of the process
 (and even that is often done indirectly via `tornado.web.Application.listen`).
 
-This module also defines the `HTTPRequest` class which is exposed via
-`tornado.web.RequestHandler.request`.
+.. versionchanged:: 3.3
+
+   The ``HTTPRequest`` class that used to live in this module has been moved
+   to `tornado.httputil.HTTPServerRequest`.  The old name remains as an alias.
 """
 
 from __future__ import absolute_import, division, print_function, with_statement
@@ -36,7 +38,7 @@ class HTTPServer(TCPServer):
 
     A server is defined by a request callback that takes an HTTPRequest
     instance as an argument and writes a valid HTTP response with
-    `HTTPRequest.write`. `HTTPRequest.finish` finishes the request (but does
+    `.HTTPServerRequest.write`. `.HTTPServerRequest.finish` finishes the request (but does
     not necessarily close the connection in the case of HTTP/1.1 keep-alive
     requests). A simple example server that echoes back the URI you
     requested::
index 1ca54bc8a6bed75401ab0a430f5d6729caea07dc..fac21ec0869dd664a60dd51f7b5b5f7909217553 100644 (file)
 # License for the specific language governing permissions and limitations
 # under the License.
 
-"""HTTP utility code shared by clients and servers."""
+"""HTTP utility code shared by clients and servers.
+
+This module also defines the `HTTPServerRequest` class which is exposed
+via `tornado.web.RequestHandler.request`.
+"""
 
 from __future__ import absolute_import, division, print_function, with_statement
 
index 2d9908055914c00f2531916fb657b42942e8715f..2c11f2bc177bf6935281ffb0cfd4651d2918e13d 100644 (file)
@@ -455,7 +455,7 @@ class RequestHandler(object):
 
     @property
     def cookies(self):
-        """An alias for `self.request.cookies <.httpserver.HTTPRequest.cookies>`."""
+        """An alias for `self.request.cookies <.httputil.HTTPServerRequest.cookies>`."""
         return self.request.cookies
 
     def get_cookie(self, name, default=None):
@@ -2257,7 +2257,7 @@ class FallbackHandler(RequestHandler):
     """A `RequestHandler` that wraps another HTTP server callback.
 
     The fallback is a callable object that accepts an
-    `~.httpserver.HTTPRequest`, such as an `Application` or
+    `~.httputil.HTTPServerRequest`, such as an `Application` or
     `tornado.wsgi.WSGIContainer`.  This is most useful to use both
     Tornado ``RequestHandlers`` and WSGI in the same server.  Typical
     usage::
index f21f240c220ba04b81b3e132babc6f53eaa56ea5..62423259c53e8473616615677491d7cab8d6f70a 100644 (file)
@@ -135,7 +135,7 @@ class WSGIApplication(web.Application):
 
 
 class HTTPRequest(object):
-    """Mimics `tornado.httpserver.HTTPRequest` for WSGI applications."""
+    """Mimics `tornado.httputil.HTTPServerRequest` for WSGI applications."""
     def __init__(self, environ):
         """Parses the given WSGI environment to construct the request."""
         self.method = environ["REQUEST_METHOD"]
@@ -291,7 +291,7 @@ class WSGIContainer(object):
 
     @staticmethod
     def environ(request):
-        """Converts a `tornado.httpserver.HTTPRequest` to a WSGI environment.
+        """Converts a `tornado.httputil.HTTPServerRequest` to a WSGI environment.
         """
         hostport = request.host.split(":")
         if len(hostport) == 2: