Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure multiple events for one request. #347

Open
comeCU opened this issue Sep 1, 2024 · 1 comment
Open

How to configure multiple events for one request. #347

comeCU opened this issue Sep 1, 2024 · 1 comment

Comments

@comeCU
Copy link

comeCU commented Sep 1, 2024

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"
        }
      }
    }
  }
]
@ComeonBug
Copy link

ComeonBug commented Sep 1, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants