Revert "Improving http interface"

This reverts commit bef938a4c53af6f7d675e716a16fde4c1978f42a.