Revert "Revert "Improving http interface""

This reverts commit 85fc2d5043668b4128a2c6d854110ba12643f4f0.
Let's try this