Allow getting the compression used in a connection