Refactor the codes, add the HTTPHeaders class