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
↓ 1 callers
Method
fill
(r io.Reader)
modules/caddyhttp/reverseproxy/fastcgi/record.go:29
↓ 1 callers
Method
finalizeHeredoc
finalizeHeredoc takes the runes read as the heredoc text and the marker, and processes the text to strip leading whitespace, returning the final value
caddyconfig/caddyfile/lexer.go:300
↓ 1 callers
Method
findLastRouteWithHostMatcher
findLastRouteWithHostMatcher returns the index of the last route in the server which has a host matcher. Used during Automatic HTTPS to determine wher
modules/caddyhttp/server.go:631
↓ 1 callers
Function
findSubstring
(s, substr string)
modules/caddytls/capools_test.go:988
↓ 1 callers
Function
finishSettingUp
finishSettingUp should be run after all apps have successfully started.
caddy.go:594
↓ 1 callers
Function
firstBytesLookLikeHTTP
firstBytesLookLikeHTTP reports whether a TLS record header looks like it might've been a misdirected plaintext HTTP request.
modules/caddyhttp/httpredirectlistener.go:163
↓ 1 callers
Method
flushInterval
flushInterval returns the p.FlushInterval value, conditionally overriding its value for a specific request/response.
modules/caddyhttp/reverseproxy/streaming.go:243
↓ 1 callers
Method
funcHTTPInclude
funcHTTPInclude returns the body of a virtual (lightweight) request to the given URI on the same server. Note that included bodies are NOT escaped, so
modules/caddyhttp/templates/tplcontext.go:173
↓ 1 callers
Method
funcHumanize
funcHumanize transforms size and time inputs to a human readable format. Size inputs are expected to be integers, and are formatted as a byte size, s
modules/caddyhttp/templates/tplcontext.go:475
↓ 1 callers
Method
funcImport
funcImport parses the filename into the current template stack. The imported file will be rendered within the current template by calling {{ block }}
modules/caddyhttp/templates/tplcontext.go:223
↓ 1 callers
Method
funcInclude
funcInclude returns the contents of filename relative to the site root and renders it in place. Note that included files are NOT escaped, so you shoul
modules/caddyhttp/templates/tplcontext.go:112
↓ 1 callers
Method
funcListFiles
funcListFiles reads and returns a slice of names from the given directory relative to the root of c.
modules/caddyhttp/templates/tplcontext.go:393
↓ 1 callers
Method
funcMarkdown
funcMarkdown renders the markdown body as HTML. The resulting HTML is NOT escaped so that it can be rendered as HTML.
modules/caddyhttp/templates/tplcontext.go:347
↓ 1 callers
Method
funcSplitFrontMatter
funcSplitFrontMatter parses front matter out from the beginning of input, and returns the separated key-value pairs and the body/content. input must b
modules/caddyhttp/templates/tplcontext.go:383
↓ 1 callers
Method
funcStripHTML
funcStripHTML returns s without HTML tags. Similar to PHP's strip_tags()
modules/caddyhttp/templates/tplcontext.go:316
↓ 1 callers
Method
genRoot
()
modules/caddypki/ca.go:315
↓ 1 callers
Function
generateIntermediate
(commonName string, rootCrt *x509.Certificate, rootKey crypto.Signer, lifetime time.Duration)
modules/caddypki/certificates.go:38
↓ 1 callers
Function
generateRoot
(commonName string)
modules/caddypki/certificates.go:26
↓ 1 callers
Method
generateSTEK
generateSTEK generates key material suitable for use as a session ticket ephemeral key.
modules/caddytls/sessiontickets.go:218
↓ 1 callers
Function
generateSalt
(length int)
modules/caddyhttp/caddyauth/argon2id.go:182
↓ 1 callers
Method
generateZeroSSLEABCredentials
generateZeroSSLEABCredentials generates ZeroSSL EAB credentials for the primary contact email on the issuer. It should only be usedif the CA endpoint
modules/caddytls/acmeissuer.go:364
↓ 1 callers
Function
getEOL
()
replacer_test.go:453
↓ 1 callers
Function
getHTTP3Network
(originalNetwork string)
modules/caddyhttp/server.go:1241
↓ 1 callers
Function
getInFlightRequests
()
modules/caddyhttp/reverseproxy/reverseproxy.go:66
↓ 1 callers
Function
getListenerFromPlugin
getListenerFromPlugin returns a listener on the given network and address if a plugin has registered the network name. It may return (nil, nil) if no
listeners.go:687
↓ 1 callers
Method
getLoggerHosts
(host string)
modules/caddyhttp/logging.go:135
↓ 1 callers
Function
getModuleNameInline
getModuleNameInline loads the string value from raw of moduleNameKey, where raw must be a JSON encoding of a map. It returns that value, along with th
modules.go:263
↓ 1 callers
Function
getOptimalDefaultCipherSuites
getOptimalDefaultCipherSuites returns an appropriate cipher suite to use depending on the hardware support for AES. See https://github.com/caddyserve
modules/caddytls/values.go:77
↓ 1 callers
Method
getOrigin
(r *http.Request)
admin.go:959
↓ 1 callers
Function
getReqTLSReplacement
(req *http.Request, key string)
modules/caddyhttp/replacer.go:406
↓ 1 callers
Method
getSloggerHandler
(handler *extraFieldsSlogHandler)
modules/caddyhttp/logging.go:260
↓ 1 callers
Function
getTLSPeerCert
getTLSPeerCert retrieves the first peer certificate from a TLS session. Returns nil if no peer cert is in use.
modules/caddyhttp/replacer.go:560
↓ 1 callers
Method
handleCACerts
handleCACerts returns the certificate chain for a particular CA by its ID. If the CA ID is the default, then the CA will be provisioned if it has not
modules/caddypki/adminapi.go:144
↓ 1 callers
Method
handleCAInfo
handleCAInfo returns information about a particular CA by its ID. If the CA ID is the default, then the CA will be provisioned if it has not already b
modules/caddypki/adminapi.go:94
↓ 1 callers
Function
handlePingbackConn
handlePingbackConn reads from conn and ensures it matches the bytes in expect, or returns an error if it doesn't.
cmd/main.go:83
↓ 1 callers
Method
handleUpgradeResponse
(logger *zap.Logger, wg *sync.WaitGroup, rw http.ResponseWriter, req *http.Request, res *http.Response)
modules/caddyhttp/reverseproxy/streaming.go:60
↓ 1 callers
Method
hasHostCatchAllKey
hasHostCatchAllKey returns true if sb has a key that omits a host portion, i.e. it "catches all" hosts.
caddyconfig/httpcaddyfile/directives.go:617
↓ 1 callers
Method
hasListenerAddress
hasListenerAddress returns true if s has a listener at the given address fullAddr. Currently, fullAddr must represent exactly one socket address (port
modules/caddyhttp/server.go:564
↓ 1 callers
Method
hasMore
()
modules/caddyhttp/reverseproxy/fastcgi/record.go:56
↓ 1 callers
Method
hasTLSClientAuth
()
modules/caddyhttp/server.go:620
↓ 1 callers
Function
hash
hash calculates a fast hash based on s.
modules/caddyhttp/reverseproxy/selectionpolicies.go:858
↓ 1 callers
Method
healthy
healthy returns true if the upstream is not actively marked as unhealthy. (This returns the status only from the "active" health checks.)
modules/caddyhttp/reverseproxy/hosts.go:251
↓ 1 callers
Method
hostsFromKeysNotHTTP
(httpPort string)
caddyconfig/httpcaddyfile/directives.go:594
↓ 1 callers
Function
implicitACMEIssuers
implicitACMEIssuers returns the issuers to use for ACME-related tls shortcuts such as ca, ca_root, and dns. If any global cert_issuer options configur
caddyconfig/httpcaddyfile/tlsapp.go:619
↓ 1 callers
Function
incInFlightRequest
(address string)
modules/caddyhttp/reverseproxy/reverseproxy.go:53
↓ 1 callers
Function
indexConfigObjects
indexConfigObjects recursively searches ptr for object fields named "@id" and maps that ID value to the full configPath in the index. This function is
caddy.go:290
↓ 1 callers
Function
indexFold
There is no strings.IndexFold() function like there is strings.EqualFold(), but we can use strings.EqualFold() to build our own case-insensitive subst
modules/caddyhttp/fileserver/matcher.go:596
↓ 1 callers
Function
initHTTPMetrics
(ctx caddy.Context, metrics *Metrics)
modules/caddyhttp/metrics.go:102
↓ 1 callers
Method
initMetrics
()
context.go:119
↓ 1 callers
Method
initResponseWriter
initResponseWriter initializes the responseWriter instance allocated in openResponseWriter, enabling mid-stack inlining.
modules/caddyhttp/encode/encode.go:230
↓ 1 callers
Function
initReverseProxyMetrics
(handler *Handler, registry *prometheus.Registry)
modules/caddyhttp/reverseproxy/metrics.go:22
↓ 1 callers
Function
initTestContext
()
modules/caddyhttp/templates/tplcontext_test.go:695
↓ 1 callers
Method
initializePushHeaders
(r *http.Request, repl *caddy.Replacer)
modules/caddyhttp/push/handler.go:136
↓ 1 callers
Function
instrumentHandlerCounter
Similar to promhttp.InstrumentHandlerCounter, but upper-cases method names instead of lower-casing them. Unlike promhttp.InstrumentHandlerCounter, th
metrics.go:53
↓ 1 callers
Method
isAllHTTP
isAllHTTP returns true if all sb keys explicitly specify the http:// scheme
caddyconfig/httpcaddyfile/directives.go:625
↓ 1 callers
Method
isBidirectionalStream
isBidirectionalStream returns whether we should work in bi-directional stream mode. See https://github.com/caddyserver/caddy/pull/3620 for discussion
modules/caddyhttp/reverseproxy/streaming.go:269
↓ 1 callers
Function
isCELCaddyPlaceholderCall
isCELCaddyPlaceholderCall returns whether the expression is a caddy placeholder call.
modules/caddyhttp/celmatcher.go:753
↓ 1 callers
Function
isCELConcatCall
isCELConcatCall tests whether the expression is a concat function (+) with string, placeholder, or other concat call arguments.
modules/caddyhttp/celmatcher.go:768
↓ 1 callers
Function
isCELConcatCall
isCELConcatCall tests whether the expression is a concat function (+) with string, placeholder, or other concat call arguments.
modules/caddyhttp/fileserver/matcher.go:676
↓ 1 callers
Function
isCELStringListLiteral
isCELStringListLiteral returns whether the expression resolves to a list literal containing only string constants or a placeholder call.
modules/caddyhttp/celmatcher.go:792
↓ 1 callers
Function
isCELStringListLiteral
isCELStringListLiteral returns whether the expression resolves to a list literal containing only string constants or a placeholder call.
modules/caddyhttp/fileserver/matcher.go:700
↓ 1 callers
Function
isCELStringLiteral
isCELStringLiteral returns whether the expression is a CEL string literal.
modules/caddyhttp/celmatcher.go:738
↓ 1 callers
Function
isCELTryFilesLiteral
isCELTryFilesLiteral returns whether the expression resolves to a map literal containing only string keys with or a placeholder call.
modules/caddyhttp/fileserver/matcher.go:608
↓ 1 callers
Method
isLoopback
()
listeners.go:258
↓ 1 callers
Method
isNamedRoute
()
caddyconfig/caddyfile/parse.go:722
↓ 1 callers
Function
isPureASCII
(s string)
modules/caddytls/matchers.go:120
↓ 1 callers
Function
isRemoteResource
isRemoteResource returns true if resource starts with a scheme or is a protocol-relative URI.
modules/caddyhttp/push/handler.go:228
↓ 1 callers
Method
isSnippet
()
caddyconfig/caddyfile/parse.go:731
↓ 1 callers
Method
isSymlinkTargetDir
isSymlinkTargetDir returns true if f's symbolic link target is a directory.
modules/caddyhttp/fileserver/browse.go:338
↓ 1 callers
Function
isTailscaleDomain
(name string)
modules/caddyhttp/autohttps.go:884
↓ 1 callers
Method
isUnix
()
modules/caddyhttp/reverseproxy/addresses.go:57
↓ 1 callers
Method
isWildcardInterface
()
listeners.go:271
↓ 1 callers
Method
keepStorageClean
keepStorageClean starts a goroutine that immediately cleans up all known storage units if it was not recently done, and then runs the operation at eve
modules/caddytls/tls.go:909
↓ 1 callers
Function
lastConfigMatches
lastConfigMatches returns true if the provided source file and/or adapter matches the recorded last-config. Matching rules (in priority order): 1. If
caddy.go:1294
↓ 1 callers
Function
lexerCompare
(t *testing.T, n int, expected, actual []Token)
caddyconfig/caddyfile/lexer_test.go:524
↓ 1 callers
Function
listModules
(path string)
cmd/packagesfuncs.go:266
↓ 1 callers
Method
listen
(ctx context.Context, portOffset uint, config net.ListenConfig)
listeners.go:150
↓ 1 callers
Function
listenReusable
(ctx context.Context, lnKey string, network, address string, config net.ListenConfig)
listen.go:33
↓ 1 callers
Method
listenersForServerBlockAddress
listenersForServerBlockAddress essentially converts the Caddyfile site addresses to a map from Caddy listener addresses and the protocols to serve the
caddyconfig/httpcaddyfile/addresses.go:270
↓ 1 callers
Method
load
load prepares the lexer to scan an input for tokens. It discards any leading byte order mark.
caddyconfig/caddyfile/lexer.go:78
↓ 1 callers
Method
loadDirectoryContents
(ctx context.Context, fileSystem fs.FS, dir fs.ReadDirFile, root, urlPath string, repl *caddy.Replacer)
modules/caddyhttp/fileserver/browse.go:216
↓ 1 callers
Function
loadECHConfig
loadECHConfig loads the config from storage with the given configID. An error is not actually returned in some cases the config fails to load because
modules/caddytls/ech.go:529
↓ 1 callers
Function
loadEnvFromFile
(envFile string)
cmd/main.go:352
↓ 1 callers
Method
loadModuleMap
loadModuleMap loads modules from a ModuleMap, i.e. map[string]any, where the key is the module name. With a module map, module names do not need to be
context.go:335
↓ 1 callers
Method
loadModulesFromRegularMap
loadModulesFromRegularMap loads modules from val, where val is a map[string]json.RawMessage. Map keys are NOT interpreted as module names, so module n
context.go:318
↓ 1 callers
Method
loadOrGenIntermediate
(rootCert *x509.Certificate, rootKey crypto.Signer)
modules/caddypki/ca.go:342
↓ 1 callers
Method
loadSTEK
()
modules/caddytls/distributedstek/distributedstek.go:119
↓ 1 callers
Method
logTrace
logTrace will log that this middleware handler is being invoked. It emits at DEBUG level.
modules/caddyhttp/server.go:833
↓ 1 callers
Method
maintenanceForCA
(ca *CA)
modules/caddypki/maintain.go:27
↓ 1 callers
Method
makeBrowseTemplate
makeBrowseTemplate creates the template to be used for directory listings.
modules/caddyhttp/fileserver/browse.go:315
↓ 1 callers
Method
makeClient
makeClient creates an ACME client which will use a custom resolver instead of net.DefaultResolver.
modules/caddypki/acmeserver/acmeserver.go:307
↓ 1 callers
Method
makeClient
(ctx caddy.Context)
caddyconfig/httploader.go:170
↓ 1 callers
Method
makeIssuerTemplate
(ctx caddy.Context)
modules/caddytls/acmeissuer.go:254
↓ 1 callers
Method
makeRoom
makeRoom deletes about 1/10 of the items in the cache in order to keep its size under control. It must not be called without a lock on c.mu.
modules/caddyhttp/caddyauth/basicauth.go:233
↓ 1 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/caddytls/capools.go:592
↓ 1 callers
Method
managingWildcardFor
managingWildcardFor returns true if the app is managing a certificate that covers that subject name (including consideration of wildcards), either fro
modules/caddytls/tls.go:619
↓ 1 callers
Method
mapAddressToProtocolToServerBlocks
mapAddressToProtocolToServerBlocks returns a map of listener address to list of server blocks that will be served on that address. To do this, each se
caddyconfig/httpcaddyfile/addresses.go:80
↓ 1 callers
Function
mapContains
(m map[K]V, keys []K)
caddyconfig/httpcaddyfile/httptype.go:1705
↓ 1 callers
Function
marshalPublicKey
marshalPublicKey returns the byte encoding of pubKey.
modules/caddyhttp/replacer.go:542
↓ 1 callers
Function
maskBytes
Copied from https://github.com/gorilla/websocket/blob/v1.5.0/mask.go
modules/caddyhttp/reverseproxy/streaming.go:514
← previous
next →
1,001–1,100 of 2,647, ranked by callers