class SSLTransport: (source)
The SSLTransport wraps an existing socket and establishes an SSL connection. Contrary to Python's implementation of SSLSocket, it allows you to chain multiple TLS connections together. It's particularly useful if you need to implement TLS within TLS. The class supports most of the socket API operations.
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | __init__ |
Create an SSLTransport around socket using the provided ssl_context. |
Method | cipher |
Undocumented |
Method | close |
Undocumented |
Method | compression |
Undocumented |
Method | fileno |
Undocumented |
Method | getpeercert |
Undocumented |
Method | gettimeout |
Undocumented |
Method | makefile |
Python's httpclient uses makefile and buffered io when reading HTTP messages and we need to support it. |
Method | read |
Undocumented |
Method | recv |
Undocumented |
Method | recv |
Undocumented |
Method | selected |
Undocumented |
Method | selected |
Undocumented |
Method | send |
Undocumented |
Method | sendall |
Undocumented |
Method | settimeout |
Undocumented |
Method | shared |
Undocumented |
Method | unwrap |
Undocumented |
Method | version |
Undocumented |
Instance Variable | incoming |
Undocumented |
Instance Variable | outgoing |
Undocumented |
Instance Variable | socket |
Undocumented |
Instance Variable | sslobj |
Undocumented |
Instance Variable | suppress |
Undocumented |
Static Method | _validate |
Raises a ProxySchemeUnsupported if the provided ssl_context can't be used for TLS in TLS. |
Method | _decref |
Undocumented |
Method | _ssl |
Performs an I/O loop between incoming/outgoing and the socket. |
Method | _wrap |
Undocumented |
Create an SSLTransport around socket using the provided ssl_context.
Python's httpclient uses makefile and buffered io when reading HTTP messages and we need to support it. This is unfortunately a copy and paste of socket.py makefile with small changes to point to the socket directly.
Raises a ProxySchemeUnsupported if the provided ssl_context can't be used for TLS in TLS. The only requirement is that the ssl_context provides the 'wrap_bio' methods.