Bases: object
Encodes headers.
Note: This should be used right before sending anything out.
Parameters: | headers – Headers to encode |
---|---|
Returns: | Dictionary with encoded headers’ names and values |
Bases: object
An OpenSSL.SSL.Connection delegator.
Supplies an additional ‘makefile’ method which httplib requires and is not present in OpenSSL.SSL.Connection.
Note: Since it is not possible to inherit from OpenSSL.SSL.Connection a delegator must be used.
Bases: object
A class that acts as an iterator over an HTTP response.
Bases: httplib.HTTPSConnection
Extended HTTPSConnection which uses the OpenSSL library for enhanced SSL support. Note: Much of this functionality can eventually be replaced
with native Python 3.3 code.
Connect to an SSL port using the OpenSSL library and apply per-connection parameters.
Verify that the the x509 certificate we have received from ‘host’ correctly identifies the server we are connecting to, ie that the certificate’s Common Name or a Subject Alternative Name matches ‘host’.
Set up the OpenSSL context.