htmlPrepend
往content-type为html的响应内容前面添加数据,这个与resPrepend的区别是resPrepend不区分类型,对所有匹配的响应都会在前面添加指定的数据,配置方式:
pattern htmlPrepend://filepath
filepath为Values里面的{key}或者本地文件(如:e:\test\xxx
、e:/test/xxx
、/User/username/test/xxx
等),pattern参见匹配模式,更多模式请参考配置方式。
例子:
www.ifeng.com htmlPrepend://{test.html}
test.html:
<iframe style="width: 100%; height: 600px;" src="http://www.aliexpress.com/"></iframe>