set header_size() as classmethod to allow size calculate in advance