Method Name:
compression
Method Signature:
compression()
Return Value:
- A python string specifying the compression method used.
- If no compression is used the method returns None.
Overview:
- The method compression() returns the compression method used in the secure communication if any.
Example:
# Example Python program that retrieves the # Context # Check for OS X platform # Load CA certificates used for validating the peer's certificate # Connect to the server through an instance of an SSLSocket class # Make a connection to the server |
Output:
Compression used: None |