Changed connector interface to match how http works

I changed the connector interface to match with the http package
interface and changed the current `static` connector implementation and
the current test, although just only to be able to execute it