Added control over if HTTP connections or regular connections are excepted from outside the lib.