Refactored HttpEndpoint (GET or POST) objects

Change-Id: I6bab820d1e33e18aed4da32d3a4e990c5ac211c6