Add http module API to access and remove struct defining in header