Allow getting the compression used in a connection

Could you `use std::string` and make this `string::raw::from_buf`?