函数原型
func sleep(i1 int) bool
参数介绍
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秒再继续执行