optionally accept an object as the `url`
Merge pull request #19 from iceddev/master

optionally accept an object as the `url`