sleep函数主要是用来暂停执行等待指定的秒数的,一般用在下一个请求需要等待上一个请求的处理时使用
sleep
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秒再继续执行
r1
r0
Was this page helpful?