mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 04:56:17 -04:00
23 lines
379 B
Markdown
23 lines
379 B
Markdown
![]() |
---
|
||
|
title: abort (Caddyfile directive)
|
||
|
---
|
||
|
|
||
|
# abort
|
||
|
|
||
|
Prevents any response to the client by immediately aborting the HTTP handler chain and closing the connection. Any concurrent, active HTTP streams on the same connection are interrupted.
|
||
|
|
||
|
|
||
|
## Syntax
|
||
|
|
||
|
```caddy-d
|
||
|
abort [<matcher>]
|
||
|
```
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
Abort all requests for paths starting with `/foo`:
|
||
|
|
||
|
```caddy-d
|
||
|
abort /foo*
|
||
|
```
|