Not sure why we're copying this class wholesale - can't we extend and override just the methods(I can only see 2 including the http VS https comment in getUrl() below) that differ?