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
↓ 3 callers
Function
createRequestWithContext
(method string, url string)
modules/caddyhttp/tracing/module_test.go:400
↓ 3 callers
Method
doImport
doImport swaps out the import directive and its argument (a total of 2 tokens) with the tokens in the specified file or globbing pattern. When the fun
caddyconfig/caddyfile/parse.go:356
↓ 3 callers
Function
etagHasher
etagHasher returns the hasher we used on the config to both produce and verify ETags.
admin.go:990
↓ 3 callers
Function
exitProcessFromSignal
exitProcessFromSignal exits the process from a system signal.
sigtrap.go:57
↓ 3 callers
Function
fakeClosedErr
fakeClosedErr returns an error value that is not temporary nor a timeout, suitable for making the caller think the listener is actually closed
listeners.go:610
↓ 3 callers
Method
fillHost
()
modules/caddyhttp/reverseproxy/hosts.go:128
↓ 3 callers
Method
fillInACMEIssuer
fillInACMEIssuer fills in default values into acmeIssuer that are defined in app; these values at time of writing are just app.HTTPPort and app.HTTPSP
modules/caddyhttp/autohttps.go:827
↓ 3 callers
Method
getAutomationPolicyForName
getAutomationPolicyForName returns the first matching automation policy for the given subject name. If no matching policy can be found, the default po
modules/caddytls/tls.go:862
↓ 3 callers
Method
getEncryptedClientHelloKeys
getEncryptedClientHelloKeys is used as tls.Config's GetEncryptedClientHelloKeys field.
listeners.go:547
↓ 3 callers
Function
getPluginPackages
(modules []moduleInfo)
cmd/packagesfuncs.go:307
↓ 3 callers
Method
init
(recType uint8, reqID uint16, contentLength int)
modules/caddyhttp/reverseproxy/fastcgi/header.go:26
↓ 3 callers
Function
isCELCaddyPlaceholderCall
isCELCaddyPlaceholderCall returns whether the expression is a caddy placeholder call.
modules/caddyhttp/fileserver/matcher.go:661
↓ 3 callers
Function
isCELStringExpr
isCELStringExpr indicates whether the expression is a supported string expression
modules/caddyhttp/fileserver/matcher.go:641
↓ 3 callers
Function
isCaddyAdminRunning
(tc *Tester)
caddytest/caddytest.go:304
↓ 3 callers
Function
isEncodeAllowed
(h http.Header)
modules/caddyhttp/encode/encode.go:158
↓ 3 callers
Method
key
note that the first invocation of key cannot be called in a racy context.
internal/filesystems/map.go:29
↓ 3 callers
Method
large
large returns true if m is considered to be large. Optimizing the matcher for smaller lists has diminishing returns. See related benchmark function in
modules/caddyhttp/matchers.go:399
↓ 3 callers
Function
lastHeaderValue
lastHeaderValue gets the last value for a given header field if more than one is set. If the header field is nil, then the omit is true, meaning some
modules/caddyhttp/reverseproxy/reverseproxy.go:1567
↓ 3 callers
Function
loadConfigWithLogger
(logger *zap.Logger, configFile, adapterName string)
cmd/main.go:146
↓ 3 callers
Function
loadFallbackPolicy
(d *caddyfile.Dispenser)
modules/caddyhttp/reverseproxy/selectionpolicies.go:864
↓ 3 callers
Method
loadOrGenRoot
()
modules/caddypki/ca.go:274
↓ 3 callers
Method
loggerAllowed
loggerAllowed returns true if name is allowed to emit to cl. isModule should be true if name is the name of a module and you want to see if ANY of tha
logging.go:533
↓ 3 callers
Method
makeCertMagicConfig
makeCertMagicConfig constructs a certmagic.Config for this policy using the provided issuers and storage. It encapsulates common logic shared between
modules/caddytls/automation.go:272
↓ 3 callers
Function
makeEtag
makeEtag returns an Etag header value (including quotes) for the given config path and hash of contents at that path.
admin.go:994
↓ 3 callers
Function
mergeACMEIssuers
(base, overrides *caddytls.ACMEIssuer)
caddyconfig/httpcaddyfile/tlsapp.go:662
↓ 3 callers
Method
needsRenewal
needsRenewal reports whether the certificate is within its renewal window (i.e. the fraction of lifetime remaining is less than or equal to RenewalWin
modules/caddypki/maintain.go:106
↓ 3 callers
Function
newBaseAutomationPolicy
newBaseAutomationPolicy returns a new TLS automation policy that gets its values from the global options map. It should be used as the base for any ot
caddyconfig/httpcaddyfile/tlsapp.go:903
↓ 3 callers
Method
newReplacer
()
modules/caddypki/ca.go:427
↓ 3 callers
Function
newRequestWithHeader
(t *testing.T, method, uri, headerKey, headerVal string)
modules/caddyhttp/rewrite/rewrite_test.go:489
↓ 3 callers
Method
normalizeAllowRules
normalizeAllowRules returns `nil` if policy is nil, the `Allow` rule is `nil`, or all rules within the `Allow` rule are empty. Otherwise, it returns t
modules/caddypki/acmeserver/policy.go:43
↓ 3 callers
Method
normalizeDenyRules
normalizeDenyRules returns `nil` if policy is nil, the `Deny` rule is `nil`, or all rules within the `Deny` rule are empty. Otherwise, it returns the
modules/caddypki/acmeserver/policy.go:56
↓ 3 callers
Method
openFile
openFile opens the file at the given filename. If there was an error, the response is configured to inform the client how to best handle it and a well
modules/caddyhttp/fileserver/staticfiles.go:602
↓ 3 callers
Function
parseUpstreamDialAddress
parseUpstreamDialAddress parses configuration inputs for the dial address, including support for a scheme in front as a shortcut for the port number,
modules/caddyhttp/reverseproxy/addresses.go:65
↓ 3 callers
Function
prependCaddyFilePath
use the convention to replace /[certificatename].[crt|key] with the full path this helps reduce the noise in test configurations and also allow this t
caddytest/caddytest.go:330
↓ 3 callers
Method
protocolsWithDefaults
()
modules/caddyhttp/server.go:929
↓ 3 callers
Method
provision
(ctx Context, logging *Logging)
logging.go:452
↓ 3 callers
Method
provision
(ctx caddy.Context)
modules/caddytls/connpolicy.go:778
↓ 3 callers
Method
provisionOTLP
provisionOTLP wires a MeterProvider that periodically reads the process-wide Prometheus registry and pushes the result via OTLP. The exporter and read
modules/caddyhttp/metrics.go:172
↓ 3 callers
Method
readFileToBuffer
readFileToBuffer reads a file into a buffer
modules/caddyhttp/templates/tplcontext.go:150
↓ 3 callers
Function
redirect
redirect performs a redirect to a given path. The 'toPath' parameter MUST be solely a path, and MUST NOT include a query.
modules/caddyhttp/fileserver/staticfiles.go:798
↓ 3 callers
Method
replace
(key string)
replacer.go:347
↓ 3 callers
Function
reverse
(s string)
modules/caddyhttp/rewrite/rewrite.go:443
↓ 3 callers
Method
serveHTTP
(w http.ResponseWriter, r *http.Request)
modules/caddyhttp/server.go:472
↓ 3 callers
Function
serverNameFromContext
serverNameFromContext extracts the current server name from the context. Returns "UNKNOWN" if none is available (should probably never happen).
modules/caddyhttp/metrics.go:289
↓ 3 callers
Method
storageCleanInterval
()
modules/caddytls/tls.go:995
↓ 3 callers
Method
storageKeyRootCert
()
modules/caddypki/ca.go:411
↓ 3 callers
Function
testTLSProxyProtocolMatrix
testTLSProxyProtocolMatrix is the shared implementation for TLS-based proxy protocol tests. It mirrors testProxyProtocolMatrix but uses a TLS backend
caddytest/integration/proxyprotocol_test.go:277
↓ 3 callers
Method
updateReadSize
(n int)
modules/caddyhttp/responsewriter.go:284
↓ 3 callers
Function
upgradeBuild
(pluginPkgs map[string]pluginPackage, fl Flags)
cmd/packagesfuncs.go:124
↓ 3 callers
Function
upgradeType
(h http.Header)
modules/caddyhttp/reverseproxy/reverseproxy.go:1578
↓ 2 callers
Method
Accept
()
modules/caddyhttp/http2listener.go:33
↓ 2 callers
Method
Accept
()
cmd/main_test.go:236
↓ 2 callers
Method
AcceptEncoding
()
modules/caddyhttp/encode/encode.go:581
↓ 2 callers
Method
Active
Active returns true if clientauth has an actionable configuration.
modules/caddytls/connpolicy.go:824
↓ 2 callers
Method
AddArray
AddArray is part of the zapcore.ObjectEncoder interface. Array elements do not get filtered.
modules/logging/nopencoder.go:29
↓ 2 callers
Method
AddBool
AddBool is part of the zapcore.ObjectEncoder interface.
modules/logging/nopencoder.go:41
↓ 2 callers
Method
AddObject
AddObject is part of the zapcore.ObjectEncoder interface.
modules/logging/nopencoder.go:32
↓ 2 callers
Method
AddUint8
AddUint8 is part of the zapcore.ObjectEncoder interface.
modules/logging/nopencoder.go:92
↓ 2 callers
Function
AdminAPIRequest
AdminAPIRequest makes an API request according to the CLI flags given, with the given HTTP method and request URI. If body is non-nil, it will be assu
cmd/commandfuncs.go:774
↓ 2 callers
Method
AnyMatchWithError
AnyMatchWithError returns true if req matches any of the matcher sets in ms or if there are no matchers, in which case the request always matches. If
modules/caddyhttp/routes.go:430
↓ 2 callers
Function
AppDataDir
AppDataDir returns a directory path that is suitable for storing application data on disk. It uses the environment for finding the best place to store
storage.go:122
↓ 2 callers
Method
ApplyToSegment
ApplyToSegment replaces shorthand placeholder to its full placeholder, understandable by Caddy.
caddyconfig/httpcaddyfile/shorthands.go:94
↓ 2 callers
Function
AssertAdapt
AssertAdapt adapts a config and then tests it against an expected result
caddytest/caddytest.go:476
↓ 2 callers
Method
AssertPatchResponseBody
AssertPatchResponseBody requests a URI with PATCH and asserts the response code and body.
caddytest/caddytest.go:599
↓ 2 callers
Method
AssertPutResponseBody
AssertPutResponseBody requests a URI with PUT and asserts the response code and body.
caddytest/caddytest.go:584
↓ 2 callers
Method
Build
()
cmd/commandfactory.go:22
↓ 2 callers
Function
CELMatcherDecorator
CELMatcherDecorator matches a call overload generated by a CEL macro that takes a single argument, and optimizes the implementation to precompile the
modules/caddyhttp/celmatcher.go:469
↓ 2 callers
Function
CELMatcherRuntimeFunction
CELMatcherRuntimeFunction creates a function binding for when the input to the matcher is dynamically resolved rather than a set of static constant va
modules/caddyhttp/celmatcher.go:554
↓ 2 callers
Method
CalledReadFrom
()
modules/caddyhttp/responsewriter_test.go:14
↓ 2 callers
Function
CipherSuiteID
CipherSuiteID returns the ID of the cipher suite associated with the given name, or 0 if the name is not recognized/supported.
modules/caddytls/values.go:34
↓ 2 callers
Method
Close
Close stops accepting new connections without closing the underlying listener. The underlying listener is only closed if the caller is the last known
listen.go:173
↓ 2 callers
Function
CompareAdapt
CompareAdapt adapts a config and then compares it against an expected result
caddytest/caddytest.go:415
↓ 2 callers
Method
ConfigureTLSConfig
ConfigureTLSConfig sets up cfg to enforce clientauth's configuration.
modules/caddytls/connpolicy.go:834
↓ 2 callers
Method
ConnectionState
()
modules/caddyhttp/http2listener.go:13
↓ 2 callers
Method
Default
()
filesystem.go:23
↓ 2 callers
Function
DetermineAdminAPIAddress
DetermineAdminAPIAddress determines which admin API endpoint address should be used based on the inputs. By priority: if `address` is specified, then
cmd/commandfuncs.go:862
↓ 2 callers
Method
Expand
Expand returns one NetworkAddress for each port in the port range.
listeners.go:229
↓ 2 callers
Method
Filter
(zapcore.Field)
modules/logging/filters.go:50
↓ 2 callers
Method
Filter
Filter filters the input field with the replacement value.
modules/logging/filters.go:102
↓ 2 callers
Method
Filter
Filter filters the input field.
modules/logging/filters.go:394
↓ 2 callers
Method
Filter
Filter filters the input field with the replacement value if it matches the regexp.
modules/logging/filters.go:615
↓ 2 callers
Method
FlushStream
FlushStream flush data then end current stream
modules/caddyhttp/reverseproxy/fastcgi/writer.go:140
↓ 2 callers
Function
FormattingDifference
FormattingDifference returns a warning and true if the formatted version is any different from the input; empty warning and false otherwise. TODO: als
caddyconfig/caddyfile/adapter.go:69
↓ 2 callers
Method
FromInterface
FromInterface fills ms from an 'any' value obtained from LoadModule.
modules/caddyhttp/routes.go:441
↓ 2 callers
Method
Get
Get gets a value from the replacer. It returns the value and whether the variable was known.
replacer.go:100
↓ 2 callers
Method
Get
Get issues a GET request to the fcgi responder.
modules/caddyhttp/reverseproxy/fastcgi/client.go:267
↓ 2 callers
Function
GetDialInfo
GetDialInfo gets the upstream dialing info out of the context, and returns true if there was a valid value; false otherwise.
modules/caddyhttp/reverseproxy/hosts.go:299
↓ 2 callers
Function
GetModules
GetModules returns all modules in the given scope/namespace. For example, a scope of "foo" returns modules named "foo.bar", "foo.loo", but not "bar",
modules.go:204
↓ 2 callers
Method
GetUpstreams
(*http.Request)
modules/caddyhttp/reverseproxy/reverseproxy.go:1690
↓ 2 callers
Method
Glob
(pattern string)
internal/filesystems/os.go:20
↓ 2 callers
Method
HandshakeContext
HandshakeContext returns a context to pass into CertMagic's GetCertificate function used to serve, load, and manage certs during TLS handshakes. Gener
modules/caddytls/connpolicy.go:266
↓ 2 callers
Method
HasCertificateForSubject
(subject string)
modules/caddytls/tls.go:887
↓ 2 callers
Method
IsEnabled
IsEnabled checks if the active health checks have the minimum config necessary to be enabled.
modules/caddyhttp/reverseproxy/healthchecks.go:226
↓ 2 callers
Function
JoinNetworkAddress
JoinNetworkAddress combines network, host, and port into a single address string of the form accepted by ParseNetworkAddress(). For unix sockets, the
listeners.go:413
↓ 2 callers
Method
LoadConfig
(Context)
caddy.go:685
↓ 2 callers
Method
MakeTLSClientConfig
MakeTLSClientConfig returns a tls.Config usable by a client to a backend. If there is no custom TLS configuration, a nil config may be returned.
modules/caddyhttp/reverseproxy/httptransport.go:694
↓ 2 callers
Method
MatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/matchers.go:1141
↓ 2 callers
Function
MaxSizeSubjectsListForLog
MaxSizeSubjectsListForLog returns the keys in the map as a slice of maximum length maxToDisplay. It is useful for logging domains being managed, for e
internal/logs.go:9
↓ 2 callers
Method
Modules
Modules returns the lineage of modules that this context provisioned, with the most recent/current module being last in the list.
context.go:655
↓ 2 callers
Method
Namespace
Namespace returns the namespace (or scope) portion of a module ID, which is all but the last label of the ID. If the ID has only one label, then the n
modules.go:103
← previous
next →
401–500 of 2,647, ranked by callers