r46801 - comment about where it comes from
hawkowl-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org
| Newsgroups | gmane.comp.python.twisted.commits |
|---|---|
| Message-ID | <[email protected]> |
Author: hawkowl
Date: Mon Feb 15 17:34:07 2016
New Revision: 46801
Modified:
branches/addSlash-8169-3/twisted/web/test/requesthelper.py
Log:
comment about where it comes from
Modified: branches/addSlash-8169-3/twisted/web/test/requesthelper.py
==============================================================================
--- branches/addSlash-8169-3/twisted/web/test/requesthelper.py (original)
+++ branches/addSlash-8169-3/twisted/web/test/requesthelper.py Mon Feb 15 17:34:07 2016
@@ -74,7 +74,7 @@
class DummyRequest(object):
"""
- Represents a dummy or fake request.
+ Represents a dummy or fake request. See L{twisted.web.server.Request}.
@ivar _finishedDeferreds: C{None} or a C{list} of L{Deferreds} which will
be called back with C{None} when C{finish} is called or which will be
@@ -284,6 +284,7 @@
"""
return IPv4Address('TCP', '127.0.0.1', 80)
+
def setHost(self, host, port, ssl=0):
"""
Change the host and port the request thinks it's using.
@@ -306,6 +307,7 @@
hostHeader = host + b":" + intToBytes(port)
self.requestHeaders.addRawHeader(b"host", hostHeader)
+
def getClient(self):
"""
Get the client's IP address, if it has one.