moco frame - post header with the request

 

 

[
  {
    "description": "这是一个带header的post请求",
    "request": {
      "uri": "/post/with/headers",
      "method": "post",
      "headers": {
        "content-type": "application/json"
      },
      "json": {
        "name": "zhangshan",
        "age": "18"
      }
    },
    "response": {
      "headers": {
        "Content-Type": "text/html;charset=gbk"
      },
      "status": 200,
      "json": {
        "huhanshan": "成功",
        "status": "1"
      }
    }
  }
]

 

Guess you like

Origin www.cnblogs.com/linxinmeng/p/12607483.html