- Global options
- Option name
- Option value
- Block options
- Server
- Protocol, domain, port in any order
- Multiple addresses
- No need for
{}when only one server - Environment variables in address ex.
{$DOMAIN:localhost}
- Tokens and quotes
- directive "simple string"
- directive ""simple string""
- directive ""simple string""
- directive
"quoted string" - directive "miltiline string"
- Heredocs
example.com { respond <<HTML <html> <head><title>Foo</title></head> <body>Foo</body> </html> HTML 200 }
- Matchers
-
/path -
* -
@post
-
- Placeholders
- Snippets
-
importdirective
-
- Named Routes
- Comments
- Environment variables
- Types support
-
string -
quoted strings -
numerical -
boolean -
time(1s,1m,1h,1d) -
size(1KB,1MiB)
-
- Expressions
- After-placeholder expressions (
{method}.startsWith("P")) - Expressions (
header({'Connection':'*Upgrade*','Upgrade':'websocket'})
- After-placeholder expressions (
- Special cases
- Placeholders can't be found in random string (
redir https://www.{host}{uri})
- Placeholders can't be found in random string (
-
Notifications
You must be signed in to change notification settings - Fork 0
License
opa-oz/tree-sitter-caddy
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published