dual api support for http client in REST work item handler

(cherry picked from commit 135209a19e74199ecdfed66c81cea7a088b9a487)