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
↓ 2 callers
Method
storageKeyIntermediateCert
()
modules/caddypki/ca.go:419
↓ 2 callers
Method
storageKeyIntermediateKey
()
modules/caddypki/ca.go:423
↓ 2 callers
Method
storageKeyRootKey
()
modules/caddypki/ca.go:415
↓ 2 callers
Function
strictUntrustedClientIp
strictUntrustedClientIp iterates through the list of client IP headers, parses them from right-to-left, and returns the first valid IP address that is
modules/caddyhttp/server.go:1135
↓ 2 callers
Function
suppressConsoleEncoderTimestamp
(enc zapcore.Encoder)
modules/logging/journaldencoder.go:197
↓ 2 callers
Function
tlsCertFromCertAndKeyPEMBundle
(bundle []byte)
modules/caddytls/folderloader.go:106
↓ 2 callers
Function
trace
()
modules/caddyhttp/errors.go:106
↓ 2 callers
Method
transformHidePaths
transformHidePaths performs replacements for all the elements of fsrv.Hide and makes them absolute paths (if they contain a path separator), then retu
modules/caddyhttp/fileserver/staticfiles.go:666
↓ 2 callers
Function
trimPathPrefix
trimPathPrefix is like strings.TrimPrefix, but customized for advanced URI path prefix matching. The string prefix will be trimmed from the beginning
modules/caddyhttp/rewrite/rewrite.go:408
↓ 2 callers
Method
tryAgain
tryAgain takes the time that the handler was initially invoked, the amount of retries already performed, as well as any error currently obtained, and
modules/caddyhttp/reverseproxy/reverseproxy.go:1324
↓ 2 callers
Function
tryDuration
(val any, warnings *[]caddyconfig.Warning)
caddyconfig/httpcaddyfile/httptype.go:1677
↓ 2 callers
Function
tryInt
tryInt tries to convert val to an integer. If it fails, it downgrades the error to a warning and returns 0.
caddyconfig/httpcaddyfile/httptype.go:1661
↓ 2 callers
Function
tryString
(val any, warnings *[]caddyconfig.Warning)
caddyconfig/httpcaddyfile/httptype.go:1669
↓ 2 callers
Method
unmarshalCaddyfile
(d *caddyfile.Dispenser)
modules/caddytls/capools.go:539
↓ 2 callers
Function
unsyncedStop
unsyncedStop stops ctx from running, but has no locking around ctx. It is a no-op if ctx has a nil cfg. If any app returns an error when stopping, it
caddy.go:724
↓ 2 callers
Method
update
()
modules/caddyhttp/reverseproxy/metrics.go:88
↓ 2 callers
Method
updateKeyList
updateKeyList updates the list of ECH keys the std lib uses to serve ECH. It must be called inside a write lock on ech.configsMu.
modules/caddytls/ech.go:300
↓ 2 callers
Function
usefulModTime
Indicates whether a file's modification time is useful for validator generation purposes (i.e. inclusion in ETag and Last-Modified headers). See issue
modules/caddyhttp/fileserver/staticfiles.go:743
↓ 2 callers
Method
validate
validate checks if the given challenge is supported.
modules/caddypki/acmeserver/challenges.go:21
↓ 2 callers
Method
validate
()
modules/caddyhttp/headers/headers.go:176
↓ 2 callers
Method
verifyConnection
verifyConnection is for use as a tls.Config.VerifyConnection callback to do custom client certificate verification. It is intended for installation on
modules/caddytls/connpolicy.go:899
↓ 2 callers
Method
warnIfPolicyAllowsAll
()
modules/caddypki/acmeserver/acmeserver.go:220
↓ 2 callers
Method
wrapLogger
wrapLogger wraps logger in one or more logger named according to user preferences for the given host.
modules/caddyhttp/logging.go:93
↓ 2 callers
Function
wrapRoute
wrapRoute wraps route with a middleware and handler so that it can be chained in and defer evaluation of its matchers to request-time. Like wrapMiddle
modules/caddyhttp/routes.go:256
↓ 2 callers
Method
writeHeader
writeHeader populate header wire data in buf, it abuses buffer.Bytes() modification
modules/caddyhttp/reverseproxy/fastcgi/writer.go:120
↓ 2 callers
Method
writeRecord
(recType uint8, content []byte)
modules/caddyhttp/reverseproxy/fastcgi/writer.go:31
↓ 2 callers
Function
writeStringToTempFileOrDie
(t *testing.T, str string)
caddyconfig/caddyfile/parse_test.go:793
↓ 1 callers
Function
ActiveContext
ActiveContext returns the currently-active context. This function is experimental and might be changed or removed in the future.
caddy.go:1197
↓ 1 callers
Method
AllInternalSubjects
AllInternalSubjects returns true if all the subjects on this policy are internal.
modules/caddytls/automation.go:426
↓ 1 callers
Function
AllMatchingCertificates
AllMatchingCertificates returns the list of all certificates in the cache which could be used to satisfy the given SAN.
modules/caddytls/tls.go:881
↓ 1 callers
Function
AppConfigDir
AppConfigDir returns the directory where to store user's config. If XDG_CONFIG_HOME is set, it returns: $XDG_CONFIG_HOME/caddy. Otherwise, os.UserCon
storage.go:86
↓ 1 callers
Method
Authenticate
(http.ResponseWriter, *http.Request)
modules/caddyhttp/caddyauth/caddyauth.go:138
↓ 1 callers
Method
Breadcrumbs
Breadcrumbs returns l.Path where every element maps the link to the text to display.
modules/caddyhttp/fileserver/browsetplcontext.go:192
↓ 1 callers
Method
Buffer
()
modules/caddyhttp/responsewriter.go:320
↓ 1 callers
Method
CELLibrary
CELLibrary creates a cel.Library which makes it possible to use the target object within CEL expression matchers.
modules/caddyhttp/celmatcher.go:369
↓ 1 callers
Function
CIDRExpressionToPrefix
CIDRExpressionToPrefix takes a string which could be either a CIDR expression or a single IP address, and returns a netip.Prefix.
modules/caddyhttp/ip_range.go:106
↓ 1 callers
Method
Caddyfiles
Caddyfiles returns the list of config files from which tokens in the current server block were loaded.
caddyconfig/httpcaddyfile/directives.go:223
↓ 1 callers
Method
CertPool
CertPool implements CA.
modules/caddytls/capools.go:820
↓ 1 callers
Method
CertPool
CertPool implements CA.
modules/caddytls/capools.go:941
↓ 1 callers
Method
CertificateAllowed
CertificateAllowed returns nil if a certificate for the given name is allowed to be either obtained from an issuer or loaded from storage on-demand.
modules/caddytls/ondemand.go:72
↓ 1 callers
Method
Certificates
()
modules/caddytls/capools.go:44
↓ 1 callers
Method
Check
(entry zapcore.Entry, ce *zapcore.CheckedEntry)
internal/logbuffer.go:51
↓ 1 callers
Function
CipherSuiteNameSupported
CipherSuiteNameSupported returns true if name is a supported cipher suite.
modules/caddytls/values.go:28
↓ 1 callers
Function
ClearLastConfigIfDifferent
ClearLastConfigIfDifferent clears the recorded last-config if the provided source file/adapter do not match the recorded last-config. If both srcFile
caddy.go:1273
↓ 1 callers
Method
Clone
Clone is part of the zapcore.ObjectEncoder interface.
modules/logging/appendencoder.go:313
↓ 1 callers
Method
Clone
Clone is part of the zapcore.ObjectEncoder interface. We don't use it as of Oct 2019 (v2 beta 7), I'm not really sure what it'd be useful for in our c
modules/logging/filterencoder.go:440
↓ 1 callers
Method
Clone
Clone implements zapcore.Encoder.
modules/logging/journaldencoder.go:157
↓ 1 callers
Method
CloudEvent
Returns the module that originated the event. May be nil, usually if caddy core emits the event. CloudEvent exports event e as a structure that, when
caddy.go:1158
↓ 1 callers
Function
Commands
Commands returns a list of commands initialised by RegisterCommand
cmd/commands.go:83
↓ 1 callers
Method
ConvertToType
(typeVal ref.Type)
modules/caddyhttp/celmatcher.go:330
↓ 1 callers
Function
CreateTestingTransport
CreateTestingTransport creates a testing transport that forces call dialing connections to happen locally
caddytest/caddytest.go:337
↓ 1 callers
Method
CustomTemplateFunctions
CustomTemplateFunctions should return the mapping from custom function names to implementations.
modules/caddyhttp/templates/templates.go:399
↓ 1 callers
Function
DecodeHash
DecodeHash parses an Argon2id PHC string into an Argon2idHash struct and returns the struct along with the derived key.
modules/caddyhttp/caddyauth/argon2id.go:112
↓ 1 callers
Method
DefaultBufferSizes
DefaultBufferSizes returns the default buffer sizes for requests and responses, respectively if buffering isn't enabled.
modules/caddyhttp/reverseproxy/reverseproxy.go:1766
↓ 1 callers
Method
DeleteByPrefix
DeleteByPrefix removes all static variables with keys starting with the given prefix
replacer.go:126
↓ 1 callers
Method
Destruct
()
usagepool.go:221
↓ 1 callers
Method
EnableH2C
()
modules/caddyhttp/reverseproxy/reverseproxy.go:1746
↓ 1 callers
Method
EnableTLS
EnableTLS enables TLS within the transport if it is not already, using the provided value as a basis for the TLS config.
modules/caddyhttp/reverseproxy/reverseproxy.go:1740
↓ 1 callers
Method
Enabled
(lvl zapcore.Level)
internal/logbuffer.go:43
↓ 1 callers
Function
Error
(_ error, _ int)
notify/notify_other.go:23
↓ 1 callers
Method
FakeHash
()
modules/caddyhttp/caddyauth/basicauth.go:280
↓ 1 callers
Method
Filter
Filter filters the input field.
modules/logging/filters.go:525
↓ 1 callers
Method
FinalizeUnmarshalCaddyfile
FinalizeUnmarshalCaddyfile finalizes the Caddyfile parsing which requires having an httpcaddyfile.Helper to function, to parse subroutes. EXPERIMENTA
modules/caddyhttp/intercept/intercept.go:294
↓ 1 callers
Method
FinalizeUnmarshalCaddyfile
FinalizeUnmarshalCaddyfile finalizes the Caddyfile parsing which requires having an httpcaddyfile.Helper to function, to setup hidden Caddyfiles.
modules/caddyhttp/fileserver/caddyfile.go:207
↓ 1 callers
Function
GenerateRandomBytes
GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function
caddytest/integration/stream_test.go:415
↓ 1 callers
Function
GenerateRandomString
GenerateRandomString returns a securely generated random string. It will return an error if the system's secure random number generator fails to funct
caddytest/integration/stream_test.go:430
↓ 1 callers
Method
Get
Get will get a filesystem with a given key
internal/filesystems/map.go:60
↓ 1 callers
Method
GetCertificate
(ctx context.Context, hello *tls.ClientHelloInfo)
modules/caddytls/certmanagers.go:45
↓ 1 callers
Method
GetContext
GetContext gets the value of a key in the context map.
caddyconfig/caddyfile/dispenser.go:482
↓ 1 callers
Method
GetRecords
GetRecords gets DNS records from the zone.
caddytest/integration/mockdns_test.go:59
↓ 1 callers
Method
GroupRoutes
GroupRoutes adds the routes (caddyhttp.Route type) in vals to the same group, if there is more than one route in vals.
caddyconfig/httpcaddyfile/directives.go:309
↓ 1 callers
Method
HandleHTTPChallenge
HandleHTTPChallenge ensures that the ACME HTTP challenge or ZeroSSL HTTP validation request is handled for the certificate named by r.Host, if it is a
modules/caddytls/tls.go:766
↓ 1 callers
Method
Head
Head issues a HEAD request to the fcgi responder.
modules/caddyhttp/reverseproxy/fastcgi/client.go:275
↓ 1 callers
Method
Hijack
()
modules/caddyhttp/responsewriter.go:255
↓ 1 callers
Method
HumanModTime
HumanModTime returns the modified time of the file as a human-readable string given by format.
modules/caddyhttp/fileserver/browsetplcontext.go:316
↓ 1 callers
Method
HumanSize
HumanSize returns the size of the file as a human-readable string in IEC format (i.e. power of 2 or base 1024).
modules/caddyhttp/fileserver/browsetplcontext.go:297
↓ 1 callers
Method
IdentityCredentials
IdentityCredentials returns this instance's configured, managed identity credentials that can be used in TLS client authentication.
admin.go:649
↓ 1 callers
Method
Initialize
Initialize provides the STEK configuration to the STEK module so that it can obtain and manage keys accordingly. It returns the initial key(s) to use.
modules/caddytls/sessiontickets.go:232
↓ 1 callers
Method
IntermediateKey
IntermediateKey returns the CA's intermediate private key.
modules/caddypki/ca.go:209
↓ 1 callers
Method
IsProvisioned
IsProvisioned reports whether the automation policy has been provisioned. A provisioned policy has an initialized CertMagic instance (i.e. ap.magic !=
modules/caddytls/automation.go:386
↓ 1 callers
Function
IsWriterStandardStream
IsWriterStandardStream returns true if the input is a writer-opener to a standard stream (stdout, stderr).
logging.go:282
↓ 1 callers
Method
IssuerKey
IssuerKey returns the unique issuer key for the configured CA endpoint.
modules/caddytls/acmeissuer.go:341
↓ 1 callers
Method
ListenQUIC
ListenQUIC returns a http3.QUICEarlyListener suitable for use in a Caddy module. The network will be transformed into a QUIC-compatible type if the s
listeners.go:434
↓ 1 callers
Method
LoadCertificates
()
modules/caddytls/tls.go:1011
↓ 1 callers
Method
LoadLeafCertificates
LoadLeafCertificates returns the certificates contained in pl.
modules/caddytls/leafpemloader.go:64
↓ 1 callers
Method
LoadLeafCertificates
()
modules/caddytls/connpolicy.go:1071
↓ 1 callers
Method
LoadLeafCertificates
LoadLeafCertificates returns the certificates to be loaded by fl.
modules/caddytls/leaffileloader.go:64
↓ 1 callers
Method
LoadLeafCertificates
LoadLeafCertificates loads all the leaf certificates in the directories listed in fl from all files ending with .pem.
modules/caddytls/leaffolderloader.go:68
↓ 1 callers
Method
Logger
Logger returns a logger that is intended for use by the most recent module associated with the context. Callers should not pass in any arguments unles
context.go:573
↓ 1 callers
Method
MarshalBinary
()
modules/caddytls/ech.go:1083
↓ 1 callers
Method
Match
Match matches hello based on SNI using a regular expression.
modules/caddytls/matchers.go:279
↓ 1 callers
Method
Match
Match matches hello based on the connection's remote IP.
modules/caddytls/matchers.go:354
↓ 1 callers
Method
Match
Match matches hello based on the connection's remote IP.
modules/caddytls/matchers.go:470
↓ 1 callers
Method
MatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/ip_matchers.go:155
↓ 1 callers
Method
MatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/ip_matchers.go:262
↓ 1 callers
Method
MatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/matchers.go:429
↓ 1 callers
Method
MatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/matchers.go:714
↓ 1 callers
Method
MatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/matchers.go:807
↓ 1 callers
Method
MatchWithError
MatchWithError returns true if r matches m. An empty m matches an empty query string.
modules/caddyhttp/matchers.go:873
↓ 1 callers
Method
MatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/matchers.go:996
← previous
next →
701–800 of 2,647, ranked by callers