Raw message processing, validation and headers