MCPcopy Create free account

hub / github.com/caddyserver/caddy / functions

Functions2,647 in github.com/caddyserver/caddy

↓ 1 callersMethodfill
(r io.Reader)
modules/caddyhttp/reverseproxy/fastcgi/record.go:29
↓ 1 callersMethodfinalizeHeredoc
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 callersMethodfindLastRouteWithHostMatcher
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 callersFunctionfindSubstring
(s, substr string)
modules/caddytls/capools_test.go:988
↓ 1 callersFunctionfinishSettingUp
finishSettingUp should be run after all apps have successfully started.
caddy.go:594
↓ 1 callersFunctionfirstBytesLookLikeHTTP
firstBytesLookLikeHTTP reports whether a TLS record header looks like it might've been a misdirected plaintext HTTP request.
modules/caddyhttp/httpredirectlistener.go:163
↓ 1 callersMethodflushInterval
flushInterval returns the p.FlushInterval value, conditionally overriding its value for a specific request/response.
modules/caddyhttp/reverseproxy/streaming.go:243
↓ 1 callersMethodfuncHTTPInclude
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 callersMethodfuncHumanize
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 callersMethodfuncImport
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 callersMethodfuncInclude
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 callersMethodfuncListFiles
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 callersMethodfuncMarkdown
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 callersMethodfuncSplitFrontMatter
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 callersMethodfuncStripHTML
funcStripHTML returns s without HTML tags. Similar to PHP's strip_tags()
modules/caddyhttp/templates/tplcontext.go:316
↓ 1 callersMethodgenRoot
()
modules/caddypki/ca.go:315
↓ 1 callersFunctiongenerateIntermediate
(commonName string, rootCrt *x509.Certificate, rootKey crypto.Signer, lifetime time.Duration)
modules/caddypki/certificates.go:38
↓ 1 callersFunctiongenerateRoot
(commonName string)
modules/caddypki/certificates.go:26
↓ 1 callersMethodgenerateSTEK
generateSTEK generates key material suitable for use as a session ticket ephemeral key.
modules/caddytls/sessiontickets.go:218
↓ 1 callersFunctiongenerateSalt
(length int)
modules/caddyhttp/caddyauth/argon2id.go:182
↓ 1 callersMethodgenerateZeroSSLEABCredentials
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 callersFunctiongetEOL
()
replacer_test.go:453
↓ 1 callersFunctiongetHTTP3Network
(originalNetwork string)
modules/caddyhttp/server.go:1241
↓ 1 callersFunctiongetInFlightRequests
()
modules/caddyhttp/reverseproxy/reverseproxy.go:66
↓ 1 callersFunctiongetListenerFromPlugin
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 callersMethodgetLoggerHosts
(host string)
modules/caddyhttp/logging.go:135
↓ 1 callersFunctiongetModuleNameInline
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 callersFunctiongetOptimalDefaultCipherSuites
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 callersMethodgetOrigin
(r *http.Request)
admin.go:959
↓ 1 callersFunctiongetReqTLSReplacement
(req *http.Request, key string)
modules/caddyhttp/replacer.go:406
↓ 1 callersMethodgetSloggerHandler
(handler *extraFieldsSlogHandler)
modules/caddyhttp/logging.go:260
↓ 1 callersFunctiongetTLSPeerCert
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 callersMethodhandleCACerts
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 callersMethodhandleCAInfo
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 callersFunctionhandlePingbackConn
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 callersMethodhandleUpgradeResponse
(logger *zap.Logger, wg *sync.WaitGroup, rw http.ResponseWriter, req *http.Request, res *http.Response)
modules/caddyhttp/reverseproxy/streaming.go:60
↓ 1 callersMethodhasHostCatchAllKey
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 callersMethodhasListenerAddress
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 callersMethodhasMore
()
modules/caddyhttp/reverseproxy/fastcgi/record.go:56
↓ 1 callersMethodhasTLSClientAuth
()
modules/caddyhttp/server.go:620
↓ 1 callersFunctionhash
hash calculates a fast hash based on s.
modules/caddyhttp/reverseproxy/selectionpolicies.go:858
↓ 1 callersMethodhealthy
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 callersMethodhostsFromKeysNotHTTP
(httpPort string)
caddyconfig/httpcaddyfile/directives.go:594
↓ 1 callersFunctionimplicitACMEIssuers
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 callersFunctionincInFlightRequest
(address string)
modules/caddyhttp/reverseproxy/reverseproxy.go:53
↓ 1 callersFunctionindexConfigObjects
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 callersFunctionindexFold
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 callersFunctioninitHTTPMetrics
(ctx caddy.Context, metrics *Metrics)
modules/caddyhttp/metrics.go:102
↓ 1 callersMethodinitMetrics
()
context.go:119
↓ 1 callersMethodinitResponseWriter
initResponseWriter initializes the responseWriter instance allocated in openResponseWriter, enabling mid-stack inlining.
modules/caddyhttp/encode/encode.go:230
↓ 1 callersFunctioninitReverseProxyMetrics
(handler *Handler, registry *prometheus.Registry)
modules/caddyhttp/reverseproxy/metrics.go:22
↓ 1 callersFunctioninitTestContext
()
modules/caddyhttp/templates/tplcontext_test.go:695
↓ 1 callersMethodinitializePushHeaders
(r *http.Request, repl *caddy.Replacer)
modules/caddyhttp/push/handler.go:136
↓ 1 callersFunctioninstrumentHandlerCounter
Similar to promhttp.InstrumentHandlerCounter, but upper-cases method names instead of lower-casing them. Unlike promhttp.InstrumentHandlerCounter, th
metrics.go:53
↓ 1 callersMethodisAllHTTP
isAllHTTP returns true if all sb keys explicitly specify the http:// scheme
caddyconfig/httpcaddyfile/directives.go:625
↓ 1 callersMethodisBidirectionalStream
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 callersFunctionisCELCaddyPlaceholderCall
isCELCaddyPlaceholderCall returns whether the expression is a caddy placeholder call.
modules/caddyhttp/celmatcher.go:753
↓ 1 callersFunctionisCELConcatCall
isCELConcatCall tests whether the expression is a concat function (+) with string, placeholder, or other concat call arguments.
modules/caddyhttp/celmatcher.go:768
↓ 1 callersFunctionisCELConcatCall
isCELConcatCall tests whether the expression is a concat function (+) with string, placeholder, or other concat call arguments.
modules/caddyhttp/fileserver/matcher.go:676
↓ 1 callersFunctionisCELStringListLiteral
isCELStringListLiteral returns whether the expression resolves to a list literal containing only string constants or a placeholder call.
modules/caddyhttp/celmatcher.go:792
↓ 1 callersFunctionisCELStringListLiteral
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 callersFunctionisCELStringLiteral
isCELStringLiteral returns whether the expression is a CEL string literal.
modules/caddyhttp/celmatcher.go:738
↓ 1 callersFunctionisCELTryFilesLiteral
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 callersMethodisLoopback
()
listeners.go:258
↓ 1 callersMethodisNamedRoute
()
caddyconfig/caddyfile/parse.go:722
↓ 1 callersFunctionisPureASCII
(s string)
modules/caddytls/matchers.go:120
↓ 1 callersFunctionisRemoteResource
isRemoteResource returns true if resource starts with a scheme or is a protocol-relative URI.
modules/caddyhttp/push/handler.go:228
↓ 1 callersMethodisSnippet
()
caddyconfig/caddyfile/parse.go:731
↓ 1 callersMethodisSymlinkTargetDir
isSymlinkTargetDir returns true if f's symbolic link target is a directory.
modules/caddyhttp/fileserver/browse.go:338
↓ 1 callersFunctionisTailscaleDomain
(name string)
modules/caddyhttp/autohttps.go:884
↓ 1 callersMethodisUnix
()
modules/caddyhttp/reverseproxy/addresses.go:57
↓ 1 callersMethodisWildcardInterface
()
listeners.go:271
↓ 1 callersMethodkeepStorageClean
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 callersFunctionlastConfigMatches
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 callersFunctionlexerCompare
(t *testing.T, n int, expected, actual []Token)
caddyconfig/caddyfile/lexer_test.go:524
↓ 1 callersFunctionlistModules
(path string)
cmd/packagesfuncs.go:266
↓ 1 callersMethodlisten
(ctx context.Context, portOffset uint, config net.ListenConfig)
listeners.go:150
↓ 1 callersFunctionlistenReusable
(ctx context.Context, lnKey string, network, address string, config net.ListenConfig)
listen.go:33
↓ 1 callersMethodlistenersForServerBlockAddress
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 callersMethodload
load prepares the lexer to scan an input for tokens. It discards any leading byte order mark.
caddyconfig/caddyfile/lexer.go:78
↓ 1 callersMethodloadDirectoryContents
(ctx context.Context, fileSystem fs.FS, dir fs.ReadDirFile, root, urlPath string, repl *caddy.Replacer)
modules/caddyhttp/fileserver/browse.go:216
↓ 1 callersFunctionloadECHConfig
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 callersFunctionloadEnvFromFile
(envFile string)
cmd/main.go:352
↓ 1 callersMethodloadModuleMap
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 callersMethodloadModulesFromRegularMap
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 callersMethodloadOrGenIntermediate
(rootCert *x509.Certificate, rootKey crypto.Signer)
modules/caddypki/ca.go:342
↓ 1 callersMethodloadSTEK
()
modules/caddytls/distributedstek/distributedstek.go:119
↓ 1 callersMethodlogTrace
logTrace will log that this middleware handler is being invoked. It emits at DEBUG level.
modules/caddyhttp/server.go:833
↓ 1 callersMethodmaintenanceForCA
(ca *CA)
modules/caddypki/maintain.go:27
↓ 1 callersMethodmakeBrowseTemplate
makeBrowseTemplate creates the template to be used for directory listings.
modules/caddyhttp/fileserver/browse.go:315
↓ 1 callersMethodmakeClient
makeClient creates an ACME client which will use a custom resolver instead of net.DefaultResolver.
modules/caddypki/acmeserver/acmeserver.go:307
↓ 1 callersMethodmakeClient
(ctx caddy.Context)
caddyconfig/httploader.go:170
↓ 1 callersMethodmakeIssuerTemplate
(ctx caddy.Context)
modules/caddytls/acmeissuer.go:254
↓ 1 callersMethodmakeRoom
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 callersMethodmakeTLSClientConfig
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 callersMethodmanagingWildcardFor
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 callersMethodmapAddressToProtocolToServerBlocks
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 callersFunctionmapContains
(m map[K]V, keys []K)
caddyconfig/httpcaddyfile/httptype.go:1705
↓ 1 callersFunctionmarshalPublicKey
marshalPublicKey returns the byte encoding of pubKey.
modules/caddyhttp/replacer.go:542
↓ 1 callersFunctionmaskBytes
Copied from https://github.com/gorilla/websocket/blob/v1.5.0/mask.go
modules/caddyhttp/reverseproxy/streaming.go:514
← previousnext →1,001–1,100 of 2,647, ranked by callers