HTTP Processing
Surge includes multiple functions for modifying HTTP requests and responses, with the processing pipeline in the following order:
- URL Rewrite
- Header Rewrite
- Body Rewrite
- Script Processing
Among them, script processing can only be modified by one script, while if there are multiple hits for other rewrite rules, they will take effect in sequence.