There is no single best way to react. Your greatest chance to escape is usually when an attack begins. These actions may let you escape, but be aware that they could lead to further harm. If you believe resisting would put your life in danger, cooperate.
Rape is never a woman's fault.
It's best not to carry a weapon unless you're thoroughly trained in its use. Weapons can be turned against you. If you decide to carry a weapon, follow state laws. A course in self-defense can help you think clearly and react quickly. It can also help identify your strengths and limits.