introducing dummy HTTP function so we can test more easily