Skip to content

How to configure multiple events for one request. #347

@comeCU

Description

@comeCU

One request triggers multiple event callbacks.

my config like this, but only one will work.

[
  {
    "description":"异步事件1",
    "request":{
      "uri":"/eventAsync",
      "method":"get"
    },
    "response":{
      "text":"eventeventAsync ..."
    },
    "on":{
      "complete":{
        "async":"true",
        "latency":3000,
        "get" : {
          "url":"http://test-mysite/eventAsync01"
        }
      }
    }
  },
  {
    "description":"异步事件2",
    "request":{
      "uri":"/eventAsync",
      "method":"get"
    },
    "response":{
      "text":"eventeventAsync 2 ..."
    },
    "on":{
      "complete":{
        "async":"true",
        "latency":5000,
        "get" : {
          "url":"http://test-mysite/eventAsync02"
        }
      }
    }
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions