reqType

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

pattern reqType://mimeType

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

urlencoded: application/x-www-form-urlencoded
form: application/x-www-form-urlencoded
json: application/json
xml: text/xml
text: text/plain
upload: multipart/form-data
multipart: multipart/form-data
defaultType: application/octet-stream

例子:

www.ifeng.com reqType://text

results matching ""

    No results matching ""