add the ability to set query data for the URL in the constructor