函数原型

func sleep(i1 int) bool

参数介绍

参数名称参数介绍
i1等待时常

举例

name: fingerprint-yaml-get-ico
transport: http
rules:
  r0:
    request:
      method: GET
      path: /
      follow_redirects: true
    expression: response.status == 200 && sleep(10)
  r1:
    request:
      method: GET
      path: /
      follow_redirects: true
    expression: response.status == 200
expression: r0()
detail:
  author: test
  links:
    - test.test

这样编写后,r1规则就会在r0执行结束后等待10秒再继续执行

Was this page helpful?