HttpConnector added
used to remove some code duplication and go one step in the testing direction