Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/caddyserver/caddy
/ functions
Functions
2,647 in github.com/caddyserver/caddy
⨍
Functions
2,647
◇
Types & classes
525
↓ 4 callers
Function
changePath
(req *http.Request, newVal func(pathOrRawPath string) string)
modules/caddyhttp/rewrite/rewrite.go:509
↓ 4 callers
Function
check_validator_headers
(modTime time.Time, expect_headers bool, t *testing.T)
modules/caddyhttp/fileserver/staticfiles_test.go:148
↓ 4 callers
Method
do
(r *http.Request, repl *caddy.Replacer)
modules/caddyhttp/rewrite/rewrite.go:553
↓ 4 callers
Method
executeTemplateInBuffer
(tplName string, buf *bytes.Buffer)
modules/caddyhttp/templates/tplcontext.go:240
↓ 4 callers
Function
getModules
()
cmd/packagesfuncs.go:216
↓ 4 callers
Function
handleEnvFileFlag
handleEnvFileFlag loads the environment variables from the given --envfile flag if specified. This should be called as early in the command function.
cmd/commandfuncs.go:752
↓ 4 callers
Function
hash
hash returns the first 4 bytes of the SHA-256 hash of the given data as hexadecimal
modules/logging/filters.go:77
↓ 4 callers
Function
httpsRRALPNs
(srv *Server)
modules/caddyhttp/autohttps.go:577
↓ 4 callers
Function
isCELStringLiteral
isCELStringLiteral returns whether the expression is a CEL string literal.
modules/caddyhttp/fileserver/matcher.go:646
↓ 4 callers
Method
isFresh
()
modules/caddyhttp/reverseproxy/upstreams.go:443
↓ 4 callers
Function
isJSONRawMessage
isJSONRawMessage returns true if the type is encoding/json.RawMessage.
modules.go:355
↓ 4 callers
Function
listenTCPForPingback
(listen tcpListenFunc)
cmd/commandfuncs.go:174
↓ 4 callers
Method
loadModuleInline
loadModuleInline loads a module from a JSON raw message which decodes to a map[string]any, where one of the object keys is moduleNameKey and the corre
context.go:478
↓ 4 callers
Function
minimalHandler
minimalHandler returns a Handler with only the fields required by ServeHTTP set directly, bypassing Provision (which requires a full Caddy runtime). R
modules/caddyhttp/reverseproxy/retries_test.go:109
↓ 4 callers
Function
newRequestWithReplacer
()
modules/caddyhttp/caddyauth/caddyauth_test.go:164
↓ 4 callers
Method
nextOnSameLine
nextOnSameLine advances the cursor if the next token is on the same line of the same file.
caddyconfig/caddyfile/dispenser.go:103
↓ 4 callers
Function
parseEncoderLevel
(level string)
modules/caddyhttp/encode/zstd/zstd.go:151
↓ 4 callers
Function
parseFileMode
parseFileMode parses a file mode string, adding support for `chmod` unix command like 1 to 4 digital octal values.
modules/logging/filewriter.go:72
↓ 4 callers
Method
parseOne
()
caddyconfig/caddyfile/parse.go:141
↓ 4 callers
Function
pemEncodeCert
(der []byte)
modules/caddypki/crypto.go:56
↓ 4 callers
Function
provisionedDynamicUpstream
provisionedDynamicUpstream creates a dynamic upstream, registers it in dynamicHosts, and returns a cleanup func that removes it.
modules/caddyhttp/reverseproxy/passive_health_test.go:54
↓ 4 callers
Method
replace
(input, empty string, treatUnknownAsEmpty, errOnEmpty, errOnUnknown bool, f ReplacementFunc, )
replacer.go:175
↓ 4 callers
Method
shutdown
shutdown flushes and tears down the OTLP MeterProvider if one was provisioned. Both ForceFlush and Shutdown are always attempted so that a flush failu
modules/caddyhttp/metrics.go:217
↓ 4 callers
Method
splitPos
splitPos returns the index where path should be split based on t.SplitPath. example: if splitPath is [".php"] "/path/to/script.php/some/path": ("/pat
modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go:433
↓ 4 callers
Method
storageKeyCAPrefix
()
modules/caddypki/ca.go:407
↓ 4 callers
Function
subjectQualifiesForPublicCert
subjectQualifiesForPublicCert is like certmagic.SubjectQualifiesForPublicCert() except that this allows domains with multiple wildcard levels like '*.
caddyconfig/httpcaddyfile/tlsapp.go:1125
↓ 4 callers
Function
testReplacer
()
replacer_test.go:526
↓ 3 callers
Function
AcceptedEncodings
AcceptedEncodings returns the list of encodings that the client supports, in descending order of preference. The client preference via q-factor and th
modules/caddyhttp/encode/encode.go:498
↓ 3 callers
Method
AddAutomationPolicy
AddAutomationPolicy provisions and adds ap to the list of the app's automation policies. If an existing automation policy exists that has fewer hosts
modules/caddytls/tls.go:815
↓ 3 callers
Method
ApplyToRequest
ApplyToRequest applies ops to r, specially handling the Host header which the standard library does not include with the header map with all the other
modules/caddyhttp/headers/headers.go:344
↓ 3 callers
Method
At
At returns a NetworkAddress with a port range of just 1 at the given port offset; i.e. a NetworkAddress that represents precisely 1 address only.
listeners.go:241
↓ 3 callers
Method
Close
()
listeners.go:651
↓ 3 callers
Method
Close
()
listen_unix.go:250
↓ 3 callers
Method
Close
()
modules/caddyhttp/reverseproxy/retries_test.go:56
↓ 3 callers
Function
DefaultIssuers
DefaultIssuers returns empty Issuers (not provisioned) to be used as defaults. This function is experimental and has no compatibility promises.
modules/caddytls/automation.go:479
↓ 3 callers
Function
DefaultIssuersProvisioned
DefaultIssuersProvisioned returns empty but provisioned default Issuers from DefaultIssuers(). This function is experimental and has no compatibility
modules/caddytls/automation.go:492
↓ 3 callers
Method
EOFErr
EOFErr returns an error indicating that the dispenser reached the end of the input when searching for the next token.
caddyconfig/caddyfile/dispenser.go:424
↓ 3 callers
Method
EncodeEntry
EncodeEntry implements zapcore.Encoder.
modules/logging/journaldencoder.go:164
↓ 3 callers
Method
FinalizeUnmarshalCaddyfile
FinalizeUnmarshalCaddyfile finalizes the Caddyfile parsing which requires having an httpcaddyfile.Helper to function, to parse subroutes.
modules/caddyhttp/reverseproxy/caddyfile.go:920
↓ 3 callers
Method
Flush
Flush write buffer data to the underlying connection, it assumes header data is the first 8 bytes of buf
modules/caddyhttp/reverseproxy/fastcgi/writer.go:131
↓ 3 callers
Method
Full
Full returns true if the remote host cannot receive more requests at this time.
modules/caddyhttp/reverseproxy/hosts.go:98
↓ 3 callers
Method
GetIPRanges
(*http.Request)
modules/caddyhttp/ip_range.go:53
↓ 3 callers
Method
Hash
(plaintext []byte)
modules/caddyhttp/caddyauth/basicauth.go:279
↓ 3 callers
Method
Issue
Issue issues a certificate to satisfy the CSR.
modules/caddytls/internalissuer.go:103
↓ 3 callers
Method
LoadModuleByID
LoadModuleByID decodes rawMsg into a new instance of mod and returns the value. If mod.New is nil, an error is returned. If the module implements Vali
context.go:364
↓ 3 callers
Method
LoadOrStore
LoadOrStore loads the value associated with key from the pool if it already exists, or stores it if it does not exist. It returns the value that was e
usagepool.go:117
↓ 3 callers
Method
MarshalBinary
()
modules/caddytls/ech.go:956
↓ 3 callers
Method
Match
(*tls.ClientHelloInfo)
modules/caddytls/connpolicy.go:1065
↓ 3 callers
Method
MatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/matchers.go:307
↓ 3 callers
Method
MatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/fileserver/matcher.go:327
↓ 3 callers
Method
Module
Module returns the current module, or the most recent one provisioned by the context.
context.go:663
↓ 3 callers
Method
Network
()
modules/caddytls/matchers_test.go:315
↓ 3 callers
Method
NewTransport
NewTransport builds a standard-lib-compatible http.Transport value from h.
modules/caddyhttp/reverseproxy/httptransport.go:205
↓ 3 callers
Method
OnCancel
OnCancel executes f when ctx is canceled.
context.go:99
↓ 3 callers
Method
OpenWriter
OpenWriter opens a log for writing. The writer should be safe for concurrent use but need not be synchronous.
logging.go:277
↓ 3 callers
Method
Origin
()
caddy.go:1153
↓ 3 callers
Method
ParseAddresses
ParseAddresses parses all the configured network addresses and ensures they're ready to be used.
modules/caddyhttp/reverseproxy/upstreams.go:537
↓ 3 callers
Function
ParseDuration
ParseDuration parses a duration string, adding support for the "d" unit meaning number of days, where a day is assumed to be 24h. The maximum input st
caddy.go:890
↓ 3 callers
Function
ParseNetworkAddressWithDefaults
ParseNetworkAddressWithDefaults is like ParseNetworkAddress but allows the default network and port to be specified.
listeners.go:322
↓ 3 callers
Method
Provision
Provision compiles m's regular expressions.
modules/caddyhttp/matchers.go:1161
↓ 3 callers
Method
Provision
Provision sets up the module.
modules/caddyhttp/reverseproxy/selectionpolicies.go:638
↓ 3 callers
Method
Provision
Provision parses m's IP masks, from integers.
modules/logging/filters.go:224
↓ 3 callers
Method
ProvisionHandlers
ProvisionHandlers sets up all the handlers by loading the handler modules. Only call this method directly if you need to set up matchers and handlers
modules/caddyhttp/routes.go:160
↓ 3 callers
Method
ProvisionMatchers
ProvisionMatchers sets up all the matchers by loading the matcher modules. Only call this method directly if you need to set up matchers and handlers
modules/caddyhttp/routes.go:143
↓ 3 callers
Method
Read
(p []byte)
modules/caddyhttp/reverseproxy/fastcgi/record.go:52
↓ 3 callers
Method
ReadDir
(name string)
internal/filesystems/os.go:21
↓ 3 callers
Method
ReadFrom
(r io.Reader)
modules/caddyhttp/responsewriter.go:308
↓ 3 callers
Method
RotateSTEKs
RotateSTEKs rotates the keys in keys by producing a new key and eliding the oldest one. The new slice of keys is returned.
modules/caddytls/sessiontickets.go:189
↓ 3 callers
Method
ScalarVal
ScalarVal gets value of the current token, converted to the closest scalar type. If there is no token loaded, it returns nil.
caddyconfig/caddyfile/dispenser.go:227
↓ 3 callers
Method
SetConfig
(cfg *certmagic.Config)
modules/caddytls/automation.go:615
↓ 3 callers
Function
StatusCodeMatches
StatusCodeMatches returns true if a real HTTP status code matches the configured status code, which may be either a real HTTP status code or an intege
modules/caddyhttp/caddyhttp.go:230
↓ 3 callers
Method
SyntaxErr
SyntaxErr creates a generic syntax error which explains what was found and what was expected.
caddyconfig/caddyfile/dispenser.go:417
↓ 3 callers
Method
TLSConfig
TLSConfig returns a standard-lib-compatible TLS configuration which selects the first matching policy based on the ClientHello.
modules/caddytls/connpolicy.go:98
↓ 3 callers
Method
TLSEnabled
TLSEnabled returns true if the transport has TLS enabled, false otherwise.
modules/caddyhttp/reverseproxy/reverseproxy.go:1735
↓ 3 callers
Function
Tokenize
Tokenize takes bytes as input and lexes it into a list of tokens that can be parsed as a Caddyfile. Also takes a filename to fill the token's File as
caddyconfig/caddyfile/lexer.go:56
↓ 3 callers
Method
UnmarshalCaddyfile
UnmarshalCaddyfile sets up the handler from Caddyfile tokens. Syntax: reverse_proxy [<matcher>] [<upstreams...>] { # backends to <ups
modules/caddyhttp/reverseproxy/caddyfile.go:143
↓ 3 callers
Method
UnmarshalCaddyfile
UnmarshalCaddyfile sets up the module from Caddyfile tokens. Syntax: tracing { [span <span_name>] [span_attributes { attr1 value1 attr2
modules/caddyhttp/tracing/module.go:80
↓ 3 callers
Method
Unregister
(k string)
filesystem.go:21
↓ 3 callers
Method
Use
(fn func(cmd *cobra.Command))
cmd/commandfactory.go:18
↓ 3 callers
Method
Write
(data []byte)
modules/caddyhttp/templates/templates.go:528
↓ 3 callers
Method
WriteHeader
(status int)
modules/caddyhttp/headers/headers.go:387
↓ 3 callers
Method
WriterKey
WriterKey is a string that uniquely identifies this writer configuration. It is not shown to humans.
logging.go:272
↓ 3 callers
Function
adaptByContentType
adaptByContentType adapts body to Caddy JSON using the adapter specified by contentType. If contentType is empty or ends with "/json", the input will
caddyconfig/load.go:179
↓ 3 callers
Method
addLogField
addLogField adds the log field to the request's extra log fields. If buf is not nil, it contains the buffered response body for special response body
modules/caddyhttp/logging/logappend.go:120
↓ 3 callers
Method
addState
addState adds tls.Config and activeRequests to the map if not present and returns the corresponding context and its cancelFunc so that when cancelled,
listeners.go:558
↓ 3 callers
Function
applyHeaderOp
(ops *HeaderOps, respHeaderOps *RespHeaderOps, field, value string, replacement *string)
modules/caddyhttp/headers/caddyfile.go:225
↓ 3 callers
Function
applyHeaders
Generic request functions
caddytest/caddytest.go:487
↓ 3 callers
Function
automationPolicyImplicitIssuerClass
(ap *caddytls.AutomationPolicy)
caddyconfig/httpcaddyfile/tlsapp.go:1161
↓ 3 callers
Method
bufferedBody
bufferedBody reads originalBody into a buffer with maximum size of limit (-1 for unlimited), then returns a reader for the buffer along with how many
modules/caddyhttp/reverseproxy/reverseproxy.go:1471
↓ 3 callers
Method
buildOptions
()
logging.go:425
↓ 3 callers
Function
buildSubroute
buildSubroute turns the config values, which are expected to be routes into a clean and orderly subroute that has all the routes within it.
caddyconfig/httpcaddyfile/httptype.go:1290
↓ 3 callers
Function
caddyCmdToCobra
(caddyCmd Command)
cmd/cobra.go:132
↓ 3 callers
Function
celMatcherStringListMacroExpander
celMatcherStringListMacroExpander validates that the macro is called with a variable number of string arguments (at least one). The arguments are col
modules/caddyhttp/celmatcher.go:592
↓ 3 callers
Method
certmagicConfig
(logger *zap.Logger, makeCache bool)
admin.go:612
↓ 3 callers
Function
cleanPath
cleanPath does path.Clean(p) but preserves any trailing slash.
modules/caddyhttp/caddyhttp.go:302
↓ 3 callers
Function
cloneChallengesConfig
(cfg *caddytls.ChallengesConfig)
caddyconfig/httpcaddyfile/tlsapp.go:817
↓ 3 callers
Function
cloneDNSChallengeConfig
(cfg *caddytls.DNSChallengeConfig)
caddyconfig/httpcaddyfile/tlsapp.go:852
↓ 3 callers
Function
cloneHTTPChallengeConfig
(cfg *caddytls.HTTPChallengeConfig)
caddyconfig/httpcaddyfile/tlsapp.go:834
↓ 3 callers
Function
cloneTLSALPNChallengeConfig
(cfg *caddytls.TLSALPNChallengeConfig)
caddyconfig/httpcaddyfile/tlsapp.go:843
↓ 3 callers
Function
convertPEMFilesToDER
(filename string)
modules/caddytls/connpolicy.go:755
← previous
next →
301–400 of 2,647, ranked by callers