Replace Request2 with http class