Skip to content

How to configure multiple events for one request. #347

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"
        }
      }
    }
  }
]

Activity

  1. yangli8866 commented on Sep 1, 2024

    @yangli8866
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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