文件
一個 專案

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