MCPcopy Create free account

hub / github.com/caddyserver/caddy / functions

Functions2,647 in github.com/caddyserver/caddy

↓ 4 callersFunctionchangePath
(req *http.Request, newVal func(pathOrRawPath string) string)
modules/caddyhttp/rewrite/rewrite.go:509
↓ 4 callersFunctioncheck_validator_headers
(modTime time.Time, expect_headers bool, t *testing.T)
modules/caddyhttp/fileserver/staticfiles_test.go:148
↓ 4 callersMethoddo
(r *http.Request, repl *caddy.Replacer)
modules/caddyhttp/rewrite/rewrite.go:553
↓ 4 callersMethodexecuteTemplateInBuffer
(tplName string, buf *bytes.Buffer)
modules/caddyhttp/templates/tplcontext.go:240
↓ 4 callersFunctiongetModules
()
cmd/packagesfuncs.go:216
↓ 4 callersFunctionhandleEnvFileFlag
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 callersFunctionhash
hash returns the first 4 bytes of the SHA-256 hash of the given data as hexadecimal
modules/logging/filters.go:77
↓ 4 callersFunctionhttpsRRALPNs
(srv *Server)
modules/caddyhttp/autohttps.go:577
↓ 4 callersFunctionisCELStringLiteral
isCELStringLiteral returns whether the expression is a CEL string literal.
modules/caddyhttp/fileserver/matcher.go:646
↓ 4 callersMethodisFresh
()
modules/caddyhttp/reverseproxy/upstreams.go:443
↓ 4 callersFunctionisJSONRawMessage
isJSONRawMessage returns true if the type is encoding/json.RawMessage.
modules.go:355
↓ 4 callersFunctionlistenTCPForPingback
(listen tcpListenFunc)
cmd/commandfuncs.go:174
↓ 4 callersMethodloadModuleInline
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 callersFunctionminimalHandler
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 callersFunctionnewRequestWithReplacer
()
modules/caddyhttp/caddyauth/caddyauth_test.go:164
↓ 4 callersMethodnextOnSameLine
nextOnSameLine advances the cursor if the next token is on the same line of the same file.
caddyconfig/caddyfile/dispenser.go:103
↓ 4 callersFunctionparseEncoderLevel
(level string)
modules/caddyhttp/encode/zstd/zstd.go:151
↓ 4 callersFunctionparseFileMode
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 callersMethodparseOne
()
caddyconfig/caddyfile/parse.go:141
↓ 4 callersFunctionpemEncodeCert
(der []byte)
modules/caddypki/crypto.go:56
↓ 4 callersFunctionprovisionedDynamicUpstream
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 callersMethodreplace
(input, empty string, treatUnknownAsEmpty, errOnEmpty, errOnUnknown bool, f ReplacementFunc, )
replacer.go:175
↓ 4 callersMethodshutdown
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 callersMethodsplitPos
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 callersMethodstorageKeyCAPrefix
()
modules/caddypki/ca.go:407
↓ 4 callersFunctionsubjectQualifiesForPublicCert
subjectQualifiesForPublicCert is like certmagic.SubjectQualifiesForPublicCert() except that this allows domains with multiple wildcard levels like '*.
caddyconfig/httpcaddyfile/tlsapp.go:1125
↓ 4 callersFunctiontestReplacer
()
replacer_test.go:526
↓ 3 callersFunctionAcceptedEncodings
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 callersMethodAddAutomationPolicy
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 callersMethodApplyToRequest
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 callersMethodAt
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 callersMethodClose
()
listeners.go:651
↓ 3 callersMethodClose
()
listen_unix.go:250
↓ 3 callersMethodClose
()
modules/caddyhttp/reverseproxy/retries_test.go:56
↓ 3 callersFunctionDefaultIssuers
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 callersFunctionDefaultIssuersProvisioned
DefaultIssuersProvisioned returns empty but provisioned default Issuers from DefaultIssuers(). This function is experimental and has no compatibility
modules/caddytls/automation.go:492
↓ 3 callersMethodEOFErr
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 callersMethodEncodeEntry
EncodeEntry implements zapcore.Encoder.
modules/logging/journaldencoder.go:164
↓ 3 callersMethodFinalizeUnmarshalCaddyfile
FinalizeUnmarshalCaddyfile finalizes the Caddyfile parsing which requires having an httpcaddyfile.Helper to function, to parse subroutes.
modules/caddyhttp/reverseproxy/caddyfile.go:920
↓ 3 callersMethodFlush
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 callersMethodFull
Full returns true if the remote host cannot receive more requests at this time.
modules/caddyhttp/reverseproxy/hosts.go:98
↓ 3 callersMethodGetIPRanges
(*http.Request)
modules/caddyhttp/ip_range.go:53
↓ 3 callersMethodHash
(plaintext []byte)
modules/caddyhttp/caddyauth/basicauth.go:279
↓ 3 callersMethodIssue
Issue issues a certificate to satisfy the CSR.
modules/caddytls/internalissuer.go:103
↓ 3 callersMethodLoadModuleByID
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 callersMethodLoadOrStore
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 callersMethodMarshalBinary
()
modules/caddytls/ech.go:956
↓ 3 callersMethodMatch
(*tls.ClientHelloInfo)
modules/caddytls/connpolicy.go:1065
↓ 3 callersMethodMatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/matchers.go:307
↓ 3 callersMethodMatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/fileserver/matcher.go:327
↓ 3 callersMethodModule
Module returns the current module, or the most recent one provisioned by the context.
context.go:663
↓ 3 callersMethodNetwork
()
modules/caddytls/matchers_test.go:315
↓ 3 callersMethodNewTransport
NewTransport builds a standard-lib-compatible http.Transport value from h.
modules/caddyhttp/reverseproxy/httptransport.go:205
↓ 3 callersMethodOnCancel
OnCancel executes f when ctx is canceled.
context.go:99
↓ 3 callersMethodOpenWriter
OpenWriter opens a log for writing. The writer should be safe for concurrent use but need not be synchronous.
logging.go:277
↓ 3 callersMethodOrigin
()
caddy.go:1153
↓ 3 callersMethodParseAddresses
ParseAddresses parses all the configured network addresses and ensures they're ready to be used.
modules/caddyhttp/reverseproxy/upstreams.go:537
↓ 3 callersFunctionParseDuration
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 callersFunctionParseNetworkAddressWithDefaults
ParseNetworkAddressWithDefaults is like ParseNetworkAddress but allows the default network and port to be specified.
listeners.go:322
↓ 3 callersMethodProvision
Provision compiles m's regular expressions.
modules/caddyhttp/matchers.go:1161
↓ 3 callersMethodProvision
Provision sets up the module.
modules/caddyhttp/reverseproxy/selectionpolicies.go:638
↓ 3 callersMethodProvision
Provision parses m's IP masks, from integers.
modules/logging/filters.go:224
↓ 3 callersMethodProvisionHandlers
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 callersMethodProvisionMatchers
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 callersMethodRead
(p []byte)
modules/caddyhttp/reverseproxy/fastcgi/record.go:52
↓ 3 callersMethodReadDir
(name string)
internal/filesystems/os.go:21
↓ 3 callersMethodReadFrom
(r io.Reader)
modules/caddyhttp/responsewriter.go:308
↓ 3 callersMethodRotateSTEKs
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 callersMethodScalarVal
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 callersMethodSetConfig
(cfg *certmagic.Config)
modules/caddytls/automation.go:615
↓ 3 callersFunctionStatusCodeMatches
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 callersMethodSyntaxErr
SyntaxErr creates a generic syntax error which explains what was found and what was expected.
caddyconfig/caddyfile/dispenser.go:417
↓ 3 callersMethodTLSConfig
TLSConfig returns a standard-lib-compatible TLS configuration which selects the first matching policy based on the ClientHello.
modules/caddytls/connpolicy.go:98
↓ 3 callersMethodTLSEnabled
TLSEnabled returns true if the transport has TLS enabled, false otherwise.
modules/caddyhttp/reverseproxy/reverseproxy.go:1735
↓ 3 callersFunctionTokenize
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 callersMethodUnmarshalCaddyfile
UnmarshalCaddyfile sets up the handler from Caddyfile tokens. Syntax: reverse_proxy [<matcher>] [<upstreams...>] { # backends to <ups
modules/caddyhttp/reverseproxy/caddyfile.go:143
↓ 3 callersMethodUnmarshalCaddyfile
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 callersMethodUnregister
(k string)
filesystem.go:21
↓ 3 callersMethodUse
(fn func(cmd *cobra.Command))
cmd/commandfactory.go:18
↓ 3 callersMethodWrite
(data []byte)
modules/caddyhttp/templates/templates.go:528
↓ 3 callersMethodWriteHeader
(status int)
modules/caddyhttp/headers/headers.go:387
↓ 3 callersMethodWriterKey
WriterKey is a string that uniquely identifies this writer configuration. It is not shown to humans.
logging.go:272
↓ 3 callersFunctionadaptByContentType
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 callersMethodaddLogField
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 callersMethodaddState
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 callersFunctionapplyHeaderOp
(ops *HeaderOps, respHeaderOps *RespHeaderOps, field, value string, replacement *string)
modules/caddyhttp/headers/caddyfile.go:225
↓ 3 callersFunctionapplyHeaders
Generic request functions
caddytest/caddytest.go:487
↓ 3 callersFunctionautomationPolicyImplicitIssuerClass
(ap *caddytls.AutomationPolicy)
caddyconfig/httpcaddyfile/tlsapp.go:1161
↓ 3 callersMethodbufferedBody
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 callersMethodbuildOptions
()
logging.go:425
↓ 3 callersFunctionbuildSubroute
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 callersFunctioncaddyCmdToCobra
(caddyCmd Command)
cmd/cobra.go:132
↓ 3 callersFunctioncelMatcherStringListMacroExpander
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 callersMethodcertmagicConfig
(logger *zap.Logger, makeCache bool)
admin.go:612
↓ 3 callersFunctioncleanPath
cleanPath does path.Clean(p) but preserves any trailing slash.
modules/caddyhttp/caddyhttp.go:302
↓ 3 callersFunctioncloneChallengesConfig
(cfg *caddytls.ChallengesConfig)
caddyconfig/httpcaddyfile/tlsapp.go:817
↓ 3 callersFunctioncloneDNSChallengeConfig
(cfg *caddytls.DNSChallengeConfig)
caddyconfig/httpcaddyfile/tlsapp.go:852
↓ 3 callersFunctioncloneHTTPChallengeConfig
(cfg *caddytls.HTTPChallengeConfig)
caddyconfig/httpcaddyfile/tlsapp.go:834
↓ 3 callersFunctioncloneTLSALPNChallengeConfig
(cfg *caddytls.TLSALPNChallengeConfig)
caddyconfig/httpcaddyfile/tlsapp.go:843
↓ 3 callersFunctionconvertPEMFilesToDER
(filename string)
modules/caddytls/connpolicy.go:755
← previousnext →301–400 of 2,647, ranked by callers