resType

修改请求头的content-type,配置方式:

pattern resType://mimeType

pattern参见匹配模式,更多模式请参考配置方式,mimeType为新的content-type,如:text/plaintext/htmlimage/png等等,还有一些后缀关键字,whistle会自动把它转成对应的type:

json: application/json
xml: text/xml
js: text/javascript
txt: text/plain
html: text/html

等等

例子:

www.ifeng.com resType://text

results matching ""

    No results matching ""