I am trying to use SPDY from Python 2.7. I found the Python-spdylay library as a wrapper around the C implementation. I understand that some parts of the library are only Python 3.
I would like to reproduce the behavior of the following example from the Python-spdylay documentation in Python 2.7 ( http://spdylay.sourceforge.net/python.html#simple-spdy-client ):
#!/usr/bin/env python
In other words, I just want to get the url and provide callbacks, but using SPDY.
PyPi provides this statement
The core library API works with Python 2 and 3. But ThreadedSPDYServer requires Python 3.3 because it uses the TLS NPN extension.
I assume this means that spylay.urlfetch and spdylay.BaseSPDYStreamHandler use ThreadedSPDYServer , so maybe there is a non-streaming SPDYServer that I can use?
dg123 source share