How would you mock the HTTP request being made by the browser?