MCPcopy Create free account

hub / github.com/caddyserver/caddy / functions

Functions2,647 in github.com/caddyserver/caddy

↓ 2 callersMethodNewAuthority
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 callersFunctionNewContextWithCause
NewContextWithCause is like NewContext but returns a context.CancelCauseFunc. EXPERIMENTAL: This API is subject to change.
context.go:72
↓ 2 callersFunctionNewUsagePool
NewUsagePool returns a new usage pool that is ready to use.
usagepool.go:64
↓ 2 callersMethodNormalize
Normalize returns a normalized version of a.
caddyconfig/httpcaddyfile/addresses.go:455
↓ 2 callersFunctionOrderedHTTPSRRALPN
OrderedHTTPSRRALPN returns the HTTPS RR ALPN values in preferred order.
modules/caddytls/tls.go:726
↓ 2 callersFunctionParse
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 callersFunctionParseCaddyfileNestedMatcherSet
ParseCaddyfileNestedMatcherSet parses the Caddyfile tokens for a nested matcher set, and returns its raw module map value.
modules/caddyhttp/matchers.go:1569
↓ 2 callersFunctionParseCaddyfilePreferredChainsOptions
(d *caddyfile.Dispenser)
modules/caddytls/acmeissuer.go:699
↓ 2 callersFunctionPrepareRequest
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 callersMethodProvision
(ctx caddy.Context)
modules/caddytls/certmanagers.go:40
↓ 2 callersMethodProvision
Provision implements caddy.Provisioner.
modules/caddytls/capools.go:850
↓ 2 callersMethodProvision
Provision compiles m's regular expressions.
modules/caddyhttp/vars.go:299
↓ 2 callersMethodProvision
Provision compiles m's regexp.
modules/logging/filters.go:603
↓ 2 callersMethodProvision
Provision sets up the encoder.
modules/logging/journaldencoder.go:65
↓ 2 callersMethodProvisionDefaultCA
ProvisionDefaultCA sets up the default CA.
modules/caddypki/pki.go:81
↓ 2 callersMethodProxyFunc
()
modules.go:376
↓ 2 callersMethodPush
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 callersMethodQuoted
Quoted returns true if the token was enclosed in quotes (i.e. double quotes, backticks, or heredoc).
caddyconfig/caddyfile/lexer.go:346
↓ 2 callersMethodRange
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 callersMethodRegister
(k string, v fs.FS)
filesystem.go:20
↓ 2 callersMethodReplaceFunc
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 callersMethodRequestHeaderOps
RequestHeaderOps implements TransportHeaderOpsProvider. It returns header operations for requests when the transport's configuration indicates they sh
modules/caddyhttp/reverseproxy/httptransport.go:537
↓ 2 callersFunctionSanitizeMethod
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 callersMethodSelect
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 callersMethodSelect
Select returns an available host, if any.
modules/caddyhttp/reverseproxy/selectionpolicies.go:347
↓ 2 callersMethodServeHTTP
ServeHTTP is the external entry point for API requests. It will only be called once per request.
admin.go:781
↓ 2 callersFunctionSplitNetworkAddress
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 callersMethodStart
()
caddy.go:99
↓ 2 callersFunctionStrictUnmarshalJSON
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 callersMethodSubscribe
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 callersMethodSuffix
()
modules/caddyhttp/encode/encode.go:589
↓ 2 callersFunctionSupportedCipherSuites
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 callersMethodTimestamp
()
caddy.go:1151
↓ 2 callersFunctionToString
ToString returns val as a string, as efficiently as possible. EXPERIMENTAL: may be changed or removed later.
replacer.go:291
↓ 2 callersMethodUnmarshalCaddyfile
UnmarshalCaddyfile parses the Caddyfile segment to set up the client authentication. Syntax: client_auth { mode [request|require
modules/caddytls/connpolicy.go:654
↓ 2 callersMethodValidate
Validate checks that action types are correct.
modules/logging/filters.go:462
↓ 2 callersMethodValidate
Validate ensures the filter is properly configured with security checks.
modules/logging/filters.go:760
↓ 2 callersMethodWithDefaultOverrides
WithDefaultOverrides this will override the default test configuration with the provided values.
caddytest/caddytest.go:87
↓ 2 callersMethodWithDispenser
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 callersMethodWithError
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 callersMethodWithoutFile
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 callersMethodWrapListener
(net.Listener)
listeners.go:719
↓ 2 callersMethodWrite
(p []byte)
modules/caddyhttp/responsewriter.go:302
↓ 2 callersMethodWriteResponse
()
modules/caddyhttp/responsewriter.go:323
↓ 2 callersMethodWritten
()
modules/caddyhttp/responsewriter_test.go:13
↓ 2 callersMethodZapcoreEncoderConfig
ZapcoreEncoderConfig returns the equivalent zapcore.EncoderConfig. If lec is nil, zap.NewProductionEncoderConfig() is returned.
modules/logging/encoders.go:203
↓ 2 callersMethodaddNode
(name string)
caddyconfig/caddyfile/importgraph.go:29
↓ 2 callersMethodaddr
addr returns the listening address (host:port) of the backend.
caddytest/integration/proxyprotocol_test.go:130
↓ 2 callersMethodallowedOrigins
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 callersMethodalpnValuesForServerNames
(dnsNames []string)
modules/caddytls/tls.go:700
↓ 2 callersFunctionappendSubrouteToRouteList
appendSubrouteToRouteList appends the routes in subroute to the routeList, optionally qualified by matchers.
caddyconfig/httpcaddyfile/httptype.go:1227
↓ 2 callersFunctionapplyQueryOps
(h httpcaddyfile.Helper, qo *queryOps, args []string)
modules/caddyhttp/rewrite/caddyfile.go:191
↓ 2 callersFunctionasciiEqualFold
asciiEqualFold is strings.EqualFold, ASCII only. It reports whether s and t are equal, ASCII-case-insensitively.
modules/caddyhttp/reverseproxy/ascii.go:28
↓ 2 callersFunctionasciiIsPrint
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 callersFunctionasciiLower
asciiLower returns the ASCII lowercase version of b.
modules/caddyhttp/reverseproxy/ascii.go:41
↓ 2 callersFunctionautomationPolicyShadows
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 callersFunctionautomationPolicyUsesDefaultInternalIssuer
(ap *caddytls.AutomationPolicy)
caddyconfig/httpcaddyfile/tlsapp.go:1138
↓ 2 callersMethodblockTokens
read and store everything in a block for later replay.
caddyconfig/caddyfile/parse.go:741
↓ 2 callersMethodbuildCore
()
logging.go:396
↓ 2 callersFunctionbuildHTTPServer
( i int, port uint, addr string, statusCode int, hdr http.Header, body string, accessLog bool, )
modules/caddyhttp/staticresp.go:260
↓ 2 callersFunctioncalculateEtag
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 callersMethodcleanStorageUnits
()
modules/caddytls/tls.go:930
↓ 2 callersMethodcleanupTracerProvider
cleanupTracerProvider gracefully shutdown a TracerProvider
modules/caddyhttp/tracing/tracerprovider.go:39
↓ 2 callersFunctioncloneACMEEAB
(eab *acme.EAB)
caddyconfig/httpcaddyfile/tlsapp.go:864
↓ 2 callersFunctioncloneACMEIssuer
(iss *caddytls.ACMEIssuer)
caddyconfig/httpcaddyfile/tlsapp.go:802
↓ 2 callersFunctioncloneChainPreference
(pref *caddytls.ChainPreference)
caddyconfig/httpcaddyfile/tlsapp.go:873
↓ 2 callersFunctioncloneURL
cloneURL makes a copy of r.URL and returns a new value that doesn't reference the original.
modules/caddyhttp/server.go:1165
↓ 2 callersMethodcloseConnections
closeConnections immediately closes all hijacked connections (both to client and backend).
modules/caddyhttp/reverseproxy/streaming.go:403
↓ 2 callersFunctionconfigFileWithRespectToDefault
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 callersFunctionconsolidateRoutes
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 callersFunctioncontainsPlaceholders
containsPlaceholders checks if the string contains Caddy placeholder syntax {key}
modules/caddyhttp/headers/headers.go:163
↓ 2 callersFunctionconvertPEMFilesToDERBytes
(filename string)
modules/caddytls/leaffileloader.go:80
↓ 2 callersFunctionconvertPEMToDER
(pemData []byte)
modules/caddytls/leafstorageloader.go:106
↓ 2 callersMethodcopyResponse
(dst http.ResponseWriter, src io.Reader, flushInterval time.Duration, logger *zap.Logger)
modules/caddyhttp/reverseproxy/streaming.go:283
↓ 2 callersMethodcopyToBackend
(errc chan<- error)
modules/caddyhttp/reverseproxy/streaming.go:653
↓ 2 callersFunctioncreateMetricsHandler
(logger promhttp.Logger, enableOpenMetrics bool, registry *prometheus.Registry)
modules/metrics/metrics.go:115
↓ 2 callersFunctiondeadUpstreamAddr
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 callersFunctiondecodeBase64DERCert
decodeBase64DERCert base64-decodes, then DER-decodes, certStr.
modules/caddytls/connpolicy.go:920
↓ 2 callersFunctiondetermineStorage
determineStorage returns the top-level storage module from the given config. It may return nil even if no error.
cmd/storagefuncs.go:38
↓ 2 callersMethoddial
()
modules/logging/netwriter.go:217
↓ 2 callersMethoddoActiveHealthCheckForAllHosts
doActiveHealthCheckForAllHosts immediately performs a health checks for all upstream hosts configured by h.
modules/caddyhttp/reverseproxy/healthchecks.go:297
↓ 2 callersFunctionechMetaKey
(configID uint8)
modules/caddytls/ech.go:1190
↓ 2 callersMethodemitEvent
emitEvent is a small convenience method so the caddy core can emit events, if the event app is configured.
context.go:290
↓ 2 callersFunctionencodeSize
(b []byte, size uint32)
modules/caddyhttp/reverseproxy/fastcgi/writer.go:109
↓ 2 callersMethodenforceAccessControls
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 callersMethodexists
(key string)
caddyconfig/caddyfile/importgraph.go:123
↓ 2 callersFunctionexitProcess
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 callersMethodexpandedAddr
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 callersFunctionextractFrontMatter
(input string)
modules/caddyhttp/templates/frontmatter.go:13
↓ 2 callersFunctionfileMatcherTest
(t *testing.T, i int, tc testCase)
modules/caddyhttp/fileserver/matcher_test.go:151
↓ 2 callersMethodfillDialInfo
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 callersFunctionfillInGlobalACMEDefaults
(issuer certmagic.Issuer, options map[string]any)
caddyconfig/httpcaddyfile/tlsapp.go:516
↓ 2 callersMethodfinalizeResponse
finalizeResponse prepares and copies the response.
modules/caddyhttp/reverseproxy/reverseproxy.go:1210
↓ 2 callersMethodfirstSplit
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 callersFunctionfixedEntryTime
()
modules/logging/journaldencoder_test.go:153
↓ 2 callersMethodformattedAddr
formattedAddr the RFC 2782 representation of the SRV domain, in the form "_service._proto.name".
modules/caddyhttp/reverseproxy/upstreams.go:246
↓ 2 callersFunctionfreePort
freePort returns a free local TCP port by binding briefly and releasing it.
caddytest/integration/proxyprotocol_test.go:369
↓ 2 callersMethodgenIntermediate
(rootCert *x509.Certificate, rootKey crypto.Signer)
modules/caddypki/ca.go:380
↓ 2 callersFunctiongenerateAndStoreECHConfig
(ctx caddy.Context, publicName string)
modules/caddytls/ech.go:612
↓ 2 callersFunctiongenerateRandFile
(size int)
modules/caddyhttp/reverseproxy/fastcgi/client_test.go:182
← previousnext →501–600 of 2,647, ranked by callers