abort
通过立即中止 HTTP 处理链并关闭连接,阻止向客户端发送任何响应。同一连接上任何并发的、活动的 HTTP 流都将被中断。
语法
abort [<matcher>]
示例
当使用通配符证书时,强制关闭接收到未知域名的连接
*.example.com {
@foo host foo.example.com
handle @foo {
respond "This is foo!" 200
}
handle {
# Unhandled domains fall through to here,
# but we don't want to accept their requests
abort
}
}