LTM features order of precedence

Hello, What is the order of precedence for the following features :

  • iRule HTTP_REQUEST

  • rewrite profile

  • LTM policy

regarding HTTP header rewrite?

Thank you.