Adds support for constructing Cannon with object instead of a URL