add httpProtocolContext and use util.inherits to extend class