13
13
Supported Libaries
14
14
==================
15
15
16
- ``wsgi_intercept`` works with a variety of HTTP clients in Python 2.7,
17
- 3.7 and beyond, and in pypy.
16
+ ``wsgi_intercept`` works with a variety of HTTP clients in Python 3.7
17
+ and beyond, and in pypy.
18
18
19
19
* urllib2
20
20
* urllib.request
21
21
* httplib
22
22
* http.client
23
23
* httplib2
24
24
* requests
25
- * urllib3 (<2.0.0, urllib3 2 support is in progress)
25
+ * urllib3
26
26
27
27
How Does It Work?
28
28
=================
@@ -88,14 +88,9 @@ def load_app():
88
88
Unfortunately each of the HTTP client libraries use their own specific
89
89
mechanism for making HTTP call-outs, so individual implementations are
90
90
needed. At this time there are implementations for ``httplib2``,
91
- ``urllib3`` (<2.0.0) and ``requests`` in both Python 2 and 3, ``urllib2`` and
92
- ``httplib`` in Python 2 and ``urllib.request`` and ``http.client``
91
+ ``urllib3``, ``requests``, ``urllib.request`` and ``http.client``
93
92
in Python 3.
94
93
95
- If you are using Python 2 and need support for a different HTTP
96
- client, require a version of ``wsgi_intercept<0.6``. Earlier versions
97
- include support for ``webtest``, ``webunit`` and ``zope.testbrowser``.
98
-
99
94
The best way to figure out how to use interception is to inspect
100
95
`the tests`_. More comprehensive documentation available upon
101
96
request.
@@ -115,9 +110,9 @@ def load_app():
115
110
The Python 2 version of wsgi-intercept was the result. Kumar McMillan
116
111
later took over maintenance.
117
112
118
- The current version is tested with Python 2.7, 3.5 -3.11 , and pypy and pypy3.
119
- It was assembled by `Chris Dent`_. Testing and documentation improvements
120
- from `Sasha Hart`_.
113
+ The current version is tested with Python 3.7 -3.12 , and pypy3. It was
114
+ assembled by `Chris Dent`_. Testing and documentation improvements from
115
+ `Sasha Hart`_.
121
116
122
117
.. _"best Web testing framework":
123
118
http://blog.ianbicking.org/best-of-the-web-app-test-frameworks.html
@@ -546,7 +541,6 @@ def __init__(self, *args, **kwargs):
546
541
args = args [0 :2 ]
547
542
super ().__init__ (* args , ** kwargs )
548
543
549
-
550
544
def get_app (self , host , port ):
551
545
"""
552
546
Return the app object for the given (host, port).
@@ -600,7 +594,6 @@ class WSGI_HTTPSConnection(HTTPSConnection, WSGI_HTTPConnection):
600
594
application object.
601
595
"""
602
596
603
-
604
597
def get_app (self , host , port ):
605
598
"""
606
599
Return the app object for the given (host, port).
0 commit comments