REFACTOR: change httpRequest API to return the conn