Add compression api