dreamhead / moco

Easy Setup Stub Server
MIT License
4.36k stars 1.08k forks source link

使用异步功能时,怎样指定访问第三方url的headers? #261

Closed thz1018 closed 5 years ago

thz1018 commented 5 years ago

"on": {

        "complete": {
        "async" : "true",
        "latency": {
              "duration": 3,
              "unit": "second"
          },

        "post" : {
              "url" : "url_test",
              "content":{  "template":"template"}
                 }
          }

} 访问url_test时默认使用text/plain格式,怎样配置能达到使用指定的headers?

dreamhead commented 5 years ago

The latest codebase has supported post event with headers.

https://github.com/dreamhead/moco/blob/master/moco-doc/apis.md#post-request

dreamhead commented 5 years ago

1.0.0 has been released which includes this feature.