Improved HTTP API