An HTTP request mocking helper