add decompress method for http request