dual api support for http client api in work item handler