Refactored HTTP client v2.