Make HttpSocket more configurable