add http_port attribute

Add a new attribute `http_port`.