added support for mocking http client requests and responses