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
NewAuthority
NewAuthority returns a new Smallstep-powered signing authority for this CA. Note that we receive *CA (a pointer) in this method to ensure the closure
modules/caddypki/ca.go:219
↓ 2 callers
Function
NewContextWithCause
NewContextWithCause is like NewContext but returns a context.CancelCauseFunc. EXPERIMENTAL: This API is subject to change.
context.go:72
↓ 2 callers
Function
NewUsagePool
NewUsagePool returns a new usage pool that is ready to use.
usagepool.go:64
↓ 2 callers
Method
Normalize
Normalize returns a normalized version of a.
caddyconfig/httpcaddyfile/addresses.go:455
↓ 2 callers
Function
OrderedHTTPSRRALPN
OrderedHTTPSRRALPN returns the HTTPS RR ALPN values in preferred order.
modules/caddytls/tls.go:726
↓ 2 callers
Function
Parse
Parse parses the input just enough to group tokens, in order, by server block. No further parsing is performed. Server blocks are returned in the orde
caddyconfig/caddyfile/parse.go:39
↓ 2 callers
Function
ParseCaddyfileNestedMatcherSet
ParseCaddyfileNestedMatcherSet parses the Caddyfile tokens for a nested matcher set, and returns its raw module map value.
modules/caddyhttp/matchers.go:1569
↓ 2 callers
Function
ParseCaddyfilePreferredChainsOptions
(d *caddyfile.Dispenser)
modules/caddytls/acmeissuer.go:699
↓ 2 callers
Function
PrepareRequest
PrepareRequest fills the request r for use in a Caddy HTTP handler chain. w and s can be nil, but the handlers will lose response placeholders and acc
modules/caddyhttp/server.go:982
↓ 2 callers
Method
Provision
(ctx caddy.Context)
modules/caddytls/certmanagers.go:40
↓ 2 callers
Method
Provision
Provision implements caddy.Provisioner.
modules/caddytls/capools.go:850
↓ 2 callers
Method
Provision
Provision compiles m's regular expressions.
modules/caddyhttp/vars.go:299
↓ 2 callers
Method
Provision
Provision compiles m's regexp.
modules/logging/filters.go:603
↓ 2 callers
Method
Provision
Provision sets up the encoder.
modules/logging/journaldencoder.go:65
↓ 2 callers
Method
ProvisionDefaultCA
ProvisionDefaultCA sets up the default CA.
modules/caddypki/pki.go:81
↓ 2 callers
Method
ProxyFunc
()
modules.go:376
↓ 2 callers
Method
Push
Push implements http.Pusher. It simply calls the underlying ResponseWriter's Push method if there is one, or returns ErrNotImplemented otherwise.
modules/caddyhttp/responsewriter.go:38
↓ 2 callers
Method
Quoted
Quoted returns true if the token was enclosed in quotes (i.e. double quotes, backticks, or heredoc).
caddyconfig/caddyfile/lexer.go:346
↓ 2 callers
Method
Range
Range iterates the pool similarly to how sync.Map.Range() does: it calls f for every key in the pool, and if f returns false, iteration is stopped. Ra
usagepool.go:149
↓ 2 callers
Method
Register
(k string, v fs.FS)
filesystem.go:20
↓ 2 callers
Method
ReplaceFunc
ReplaceFunc is the same as ReplaceAll, but calls f for every replacement to be made, in case f wants to change or inspect the replacement.
replacer.go:171
↓ 2 callers
Method
RequestHeaderOps
RequestHeaderOps implements TransportHeaderOpsProvider. It returns header operations for requests when the transport's configuration indicates they sh
modules/caddyhttp/reverseproxy/httptransport.go:537
↓ 2 callers
Function
SanitizeMethod
SanitizeMethod sanitizes the method for use as a metric label. This helps prevent high cardinality on the method label. The name is always upper case.
internal/metrics/metrics.go:33
↓ 2 callers
Method
Select
Select selects the up host with the least number of connections in the pool. If more than one host has the same least number of connections, one of th
modules/caddyhttp/reverseproxy/selectionpolicies.go:258
↓ 2 callers
Method
Select
Select returns an available host, if any.
modules/caddyhttp/reverseproxy/selectionpolicies.go:347
↓ 2 callers
Method
ServeHTTP
ServeHTTP is the external entry point for API requests. It will only be called once per request.
admin.go:781
↓ 2 callers
Function
SplitNetworkAddress
SplitNetworkAddress splits a into its network, host, and port components. Note that port may be a port range (:X-Y), or omitted for unix sockets.
listeners.go:378
↓ 2 callers
Method
Start
()
caddy.go:99
↓ 2 callers
Function
StrictUnmarshalJSON
StrictUnmarshalJSON is like json.Unmarshal but returns an error if any of the fields are unrecognized. Useful when decoding module configurations, whe
modules.go:342
↓ 2 callers
Method
Subscribe
Subscribe binds one or more event handlers to one or more events according to the subscription s. For now, subscriptions can only be created during th
modules/caddyevents/app.go:166
↓ 2 callers
Method
Suffix
()
modules/caddyhttp/encode/encode.go:589
↓ 2 callers
Function
SupportedCipherSuites
SupportedCipherSuites returns a list of all the cipher suites Caddy supports. The list is NOT ordered by security preference.
modules/caddytls/values.go:45
↓ 2 callers
Method
Timestamp
()
caddy.go:1151
↓ 2 callers
Function
ToString
ToString returns val as a string, as efficiently as possible. EXPERIMENTAL: may be changed or removed later.
replacer.go:291
↓ 2 callers
Method
UnmarshalCaddyfile
UnmarshalCaddyfile parses the Caddyfile segment to set up the client authentication. Syntax: client_auth { mode [request|require
modules/caddytls/connpolicy.go:654
↓ 2 callers
Method
Validate
Validate checks that action types are correct.
modules/logging/filters.go:462
↓ 2 callers
Method
Validate
Validate ensures the filter is properly configured with security checks.
modules/logging/filters.go:760
↓ 2 callers
Method
WithDefaultOverrides
WithDefaultOverrides this will override the default test configuration with the provided values.
caddytest/caddytest.go:87
↓ 2 callers
Method
WithDispenser
WithDispenser returns a new instance based on d. All others Helper fields are copied, so typically maps are shared with this new instance.
caddyconfig/httpcaddyfile/directives.go:336
↓ 2 callers
Method
WithError
WithError makes a shallow copy of r to add the error to its context, and sets placeholders on the request's replacer related to err. It returns the mo
modules/caddyhttp/server.go:778
↓ 2 callers
Method
WithoutFile
WithoutFile returns a copy of the current Replacer without support for the {file.*} placeholder, which may be unsafe in some contexts. EXPERIMENTAL:
replacer.go:74
↓ 2 callers
Method
WrapListener
(net.Listener)
listeners.go:719
↓ 2 callers
Method
Write
(p []byte)
modules/caddyhttp/responsewriter.go:302
↓ 2 callers
Method
WriteResponse
()
modules/caddyhttp/responsewriter.go:323
↓ 2 callers
Method
Written
()
modules/caddyhttp/responsewriter_test.go:13
↓ 2 callers
Method
ZapcoreEncoderConfig
ZapcoreEncoderConfig returns the equivalent zapcore.EncoderConfig. If lec is nil, zap.NewProductionEncoderConfig() is returned.
modules/logging/encoders.go:203
↓ 2 callers
Method
addNode
(name string)
caddyconfig/caddyfile/importgraph.go:29
↓ 2 callers
Method
addr
addr returns the listening address (host:port) of the backend.
caddytest/integration/proxyprotocol_test.go:130
↓ 2 callers
Method
allowedOrigins
allowedOrigins returns a list of origins that are allowed. If admin.Origins is nil (null), the provided listen address will be used as the default ori
admin.go:300
↓ 2 callers
Method
alpnValuesForServerNames
(dnsNames []string)
modules/caddytls/tls.go:700
↓ 2 callers
Function
appendSubrouteToRouteList
appendSubrouteToRouteList appends the routes in subroute to the routeList, optionally qualified by matchers.
caddyconfig/httpcaddyfile/httptype.go:1227
↓ 2 callers
Function
applyQueryOps
(h httpcaddyfile.Helper, qo *queryOps, args []string)
modules/caddyhttp/rewrite/caddyfile.go:191
↓ 2 callers
Function
asciiEqualFold
asciiEqualFold is strings.EqualFold, ASCII only. It reports whether s and t are equal, ASCII-case-insensitively.
modules/caddyhttp/reverseproxy/ascii.go:28
↓ 2 callers
Function
asciiIsPrint
asciiIsPrint returns whether s is ASCII and printable according to https://tools.ietf.org/html/rfc20#section-4.2.
modules/caddyhttp/reverseproxy/ascii.go:50
↓ 2 callers
Function
asciiLower
asciiLower returns the ASCII lowercase version of b.
modules/caddyhttp/reverseproxy/ascii.go:41
↓ 2 callers
Function
automationPolicyShadows
automationPolicyShadows returns the index of a policy that aps[i] shadows; in other words, for all policies after position i, if that policy covers th
caddyconfig/httpcaddyfile/tlsapp.go:1103
↓ 2 callers
Function
automationPolicyUsesDefaultInternalIssuer
(ap *caddytls.AutomationPolicy)
caddyconfig/httpcaddyfile/tlsapp.go:1138
↓ 2 callers
Method
blockTokens
read and store everything in a block for later replay.
caddyconfig/caddyfile/parse.go:741
↓ 2 callers
Method
buildCore
()
logging.go:396
↓ 2 callers
Function
buildHTTPServer
( i int, port uint, addr string, statusCode int, hdr http.Header, body string, accessLog bool, )
modules/caddyhttp/staticresp.go:260
↓ 2 callers
Function
calculateEtag
calculateEtag computes an entity tag using a strong validator without consuming the contents of the file. It requires the file info contain the correc
modules/caddyhttp/fileserver/staticfiles.go:763
↓ 2 callers
Method
cleanStorageUnits
()
modules/caddytls/tls.go:930
↓ 2 callers
Method
cleanupTracerProvider
cleanupTracerProvider gracefully shutdown a TracerProvider
modules/caddyhttp/tracing/tracerprovider.go:39
↓ 2 callers
Function
cloneACMEEAB
(eab *acme.EAB)
caddyconfig/httpcaddyfile/tlsapp.go:864
↓ 2 callers
Function
cloneACMEIssuer
(iss *caddytls.ACMEIssuer)
caddyconfig/httpcaddyfile/tlsapp.go:802
↓ 2 callers
Function
cloneChainPreference
(pref *caddytls.ChainPreference)
caddyconfig/httpcaddyfile/tlsapp.go:873
↓ 2 callers
Function
cloneURL
cloneURL makes a copy of r.URL and returns a new value that doesn't reference the original.
modules/caddyhttp/server.go:1165
↓ 2 callers
Method
closeConnections
closeConnections immediately closes all hijacked connections (both to client and backend).
modules/caddyhttp/reverseproxy/streaming.go:403
↓ 2 callers
Function
configFileWithRespectToDefault
configFileWithRespectToDefault returns the filename to use for loading the config, based on whether a config file is already specified and a supported
cmd/commandfuncs.go:908
↓ 2 callers
Function
consolidateRoutes
consolidateRoutes combines routes with the same properties (same matchers, same Terminal and Group settings) for a cleaner overall output.
caddyconfig/httpcaddyfile/httptype.go:1416
↓ 2 callers
Function
containsPlaceholders
containsPlaceholders checks if the string contains Caddy placeholder syntax {key}
modules/caddyhttp/headers/headers.go:163
↓ 2 callers
Function
convertPEMFilesToDERBytes
(filename string)
modules/caddytls/leaffileloader.go:80
↓ 2 callers
Function
convertPEMToDER
(pemData []byte)
modules/caddytls/leafstorageloader.go:106
↓ 2 callers
Method
copyResponse
(dst http.ResponseWriter, src io.Reader, flushInterval time.Duration, logger *zap.Logger)
modules/caddyhttp/reverseproxy/streaming.go:283
↓ 2 callers
Method
copyToBackend
(errc chan<- error)
modules/caddyhttp/reverseproxy/streaming.go:653
↓ 2 callers
Function
createMetricsHandler
(logger promhttp.Logger, enableOpenMetrics bool, registry *prometheus.Registry)
modules/metrics/metrics.go:115
↓ 2 callers
Function
deadUpstreamAddr
deadUpstreamAddr returns a TCP address that is guaranteed to refuse connections: we bind a listener, note its address, close it immediately, and retur
modules/caddyhttp/reverseproxy/retries_test.go:66
↓ 2 callers
Function
decodeBase64DERCert
decodeBase64DERCert base64-decodes, then DER-decodes, certStr.
modules/caddytls/connpolicy.go:920
↓ 2 callers
Function
determineStorage
determineStorage returns the top-level storage module from the given config. It may return nil even if no error.
cmd/storagefuncs.go:38
↓ 2 callers
Method
dial
()
modules/logging/netwriter.go:217
↓ 2 callers
Method
doActiveHealthCheckForAllHosts
doActiveHealthCheckForAllHosts immediately performs a health checks for all upstream hosts configured by h.
modules/caddyhttp/reverseproxy/healthchecks.go:297
↓ 2 callers
Function
echMetaKey
(configID uint8)
modules/caddytls/ech.go:1190
↓ 2 callers
Method
emitEvent
emitEvent is a small convenience method so the caddy core can emit events, if the event app is configured.
context.go:290
↓ 2 callers
Function
encodeSize
(b []byte, size uint32)
modules/caddyhttp/reverseproxy/fastcgi/writer.go:109
↓ 2 callers
Method
enforceAccessControls
enforceAccessControls enforces application-layer access controls for r based on remote. It expects that the TLS server has already established at leas
admin.go:668
↓ 2 callers
Method
exists
(key string)
caddyconfig/caddyfile/importgraph.go:123
↓ 2 callers
Function
exitProcess
exitProcess exits the process as gracefully as possible, but it always exits, even if there are errors doing so. It stops all apps, cleans up external
caddy.go:760
↓ 2 callers
Method
expandedAddr
expandedAddr expands placeholders in the configured SRV domain labels. The return values are: addr, the RFC 2782 representation of the SRV domain; ser
modules/caddyhttp/reverseproxy/upstreams.go:231
↓ 2 callers
Function
extractFrontMatter
(input string)
modules/caddyhttp/templates/frontmatter.go:13
↓ 2 callers
Function
fileMatcherTest
(t *testing.T, i int, tc testCase)
modules/caddyhttp/fileserver/matcher_test.go:151
↓ 2 callers
Method
fillDialInfo
fillDialInfo returns a filled DialInfo for upstream u, using the request context. Note that the returned value is not a pointer.
modules/caddyhttp/reverseproxy/hosts.go:104
↓ 2 callers
Function
fillInGlobalACMEDefaults
(issuer certmagic.Issuer, options map[string]any)
caddyconfig/httpcaddyfile/tlsapp.go:516
↓ 2 callers
Method
finalizeResponse
finalizeResponse prepares and copies the response.
modules/caddyhttp/reverseproxy/reverseproxy.go:1210
↓ 2 callers
Method
firstSplit
firstSplit returns the first result where the path can be split in two by a value in m.SplitPath. The return values are the first piece of the path th
modules/caddyhttp/fileserver/matcher.go:579
↓ 2 callers
Function
fixedEntryTime
()
modules/logging/journaldencoder_test.go:153
↓ 2 callers
Method
formattedAddr
formattedAddr the RFC 2782 representation of the SRV domain, in the form "_service._proto.name".
modules/caddyhttp/reverseproxy/upstreams.go:246
↓ 2 callers
Function
freePort
freePort returns a free local TCP port by binding briefly and releasing it.
caddytest/integration/proxyprotocol_test.go:369
↓ 2 callers
Method
genIntermediate
(rootCert *x509.Certificate, rootKey crypto.Signer)
modules/caddypki/ca.go:380
↓ 2 callers
Function
generateAndStoreECHConfig
(ctx caddy.Context, publicName string)
modules/caddytls/ech.go:612
↓ 2 callers
Function
generateRandFile
(size int)
modules/caddyhttp/reverseproxy/fastcgi/client_test.go:182
← previous
next →
501–600 of 2,647, ranked by callers