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
↓ 1 callers
Method
MatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/matchers.go:1259
↓ 1 callers
Method
MatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/matchers.go:1336
↓ 1 callers
Method
MatchWithError
MatchWithError returns true if r matches m. Since this matcher negates the embedded matchers, false is returned if any of its matcher sets return true
modules/caddyhttp/matchers.go:1444
↓ 1 callers
Method
MatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/celmatcher.go:213
↓ 1 callers
Method
MatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/vars.go:176
↓ 1 callers
Method
MatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/vars.go:316
↓ 1 callers
Method
MatcherToken
MatcherToken assumes the next argument token is (possibly) a matcher, and if so, returns the matcher set along with a true value. If the next token is
caddyconfig/httpcaddyfile/directives.go:250
↓ 1 callers
Method
Name
Name returns the Name (last element) of a module ID.
modules.go:112
↓ 1 callers
Method
NativeToValue
(value any)
modules/caddyhttp/celmatcher.go:349
↓ 1 callers
Function
NewContext
NewContext provides a new context derived from the given context ctx. Normally, you will not need to call this function unless you are loading modules
context.go:65
↓ 1 callers
Function
NewEvent
NewEvent creates a new event, but does not emit the event. To emit an event, call Emit() on the current instance of the caddyevents app instead. EXPE
caddy.go:1135
↓ 1 callers
Function
NewLogBufferCore
(level zapcore.LevelEnabler)
internal/logbuffer.go:37
↓ 1 callers
Function
NewShorthandReplacer
()
caddyconfig/httpcaddyfile/shorthands.go:20
↓ 1 callers
Method
NextLine
NextLine loads the next token only if it is not on the same line as the current token, and returns true if a token was loaded; false otherwise. If fal
caddyconfig/caddyfile/dispenser.go:124
↓ 1 callers
Method
NumLineBreaks
NumLineBreaks counts how many line breaks are in the token text.
caddyconfig/caddyfile/lexer.go:351
↓ 1 callers
Method
OK
()
modules/caddyhttp/reverseproxy/healthchecks.go:264
↓ 1 callers
Method
Options
Options issues an OPTIONS request to the fcgi responder.
modules/caddyhttp/reverseproxy/fastcgi/client.go:283
↓ 1 callers
Method
OverrideHealthCheckScheme
(base *url.URL, port string)
modules/caddyhttp/reverseproxy/reverseproxy.go:1758
↓ 1 callers
Function
ParseCaddyfileNestedMatcherSet
ParseCaddyfileNestedMatcherSet parses the Caddyfile tokens for a nested matcher set, and returns its raw module map value.
modules/caddytls/connpolicy.go:1097
↓ 1 callers
Function
ParseStructTag
ParseStructTag parses a caddy struct tag into its keys and values. It is very simple. The expected syntax is: `caddy:"key1=val1 key2=val2 ..."`
modules.go:322
↓ 1 callers
Method
PostFile
PostFile issues a POST to the fcgi responder in multipart(RFC 2046) standard, with form as a string key to a list values (url.Values), and/or with fil
modules/caddyhttp/reverseproxy/fastcgi/client.go:323
↓ 1 callers
Method
PostForm
PostForm issues a POST to the fcgi responder, with form as a string key to a list values (url.Values)
modules/caddyhttp/reverseproxy/fastcgi/client.go:315
↓ 1 callers
Function
ProtocolName
ProtocolName returns the standard name for the passed protocol version ID (e.g. "TLS1.3") or a fallback representation of the ID value if the version
modules/caddytls/values.go:144
↓ 1 callers
Method
Provision
Provision implements caddy.Provisioner.
modules/caddytls/capools.go:71
↓ 1 callers
Method
Provision
Provision implements caddy.Provisioner.
modules/caddytls/capools.go:799
↓ 1 callers
Method
Provision
Provision implements caddy.Provisioner.
modules/caddytls/leafpemloader.go:37
↓ 1 callers
Method
Provision
Provision parses m's IP ranges, either from IP or CIDR expressions.
modules/caddytls/matchers.go:331
↓ 1 callers
Method
Provision
Provision parses m's IP ranges, either from IP or CIDR expressions.
modules/caddytls/matchers.go:455
↓ 1 callers
Method
Provision
Provision sets up the configuration for the TLS app.
modules/caddytls/tls.go:162
↓ 1 callers
Method
Provision
Provision implements caddy.Provisioner.
modules/caddytls/leaffileloader.go:45
↓ 1 callers
Method
Provision
Provision sets up ap and builds its underlying CertMagic config.
modules/caddytls/automation.go:182
↓ 1 callers
Method
Provision
Provision sets up iss.
modules/caddytls/acmeissuer.go:129
↓ 1 callers
Method
Provision
(ctx caddy.Context)
modules/caddytls/ondemand.go:113
↓ 1 callers
Method
Provision
Provision implements caddy.Provisioner.
modules/caddytls/leaffolderloader.go:48
↓ 1 callers
Method
Provision
Provision parses m's IP ranges, either from IP or CIDR expressions.
modules/caddyhttp/ip_matchers.go:133
↓ 1 callers
Method
Provision
Provision parses m's IP ranges, either from IP or CIDR expressions.
modules/caddyhttp/ip_matchers.go:241
↓ 1 callers
Method
Provision
Provision sets up m.
modules/caddyhttp/celmatcher.go:122
↓ 1 callers
Method
Provision
Provision sets up h.Transport with a *http.Transport that is ready to use.
modules/caddyhttp/reverseproxy/httptransport.go:182
↓ 1 callers
Method
Provision
Provision sets up the module.
modules/caddyhttp/reverseproxy/selectionpolicies.go:473
↓ 1 callers
Method
Provision
Provision sets up t.
modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go:105
↓ 1 callers
Method
Provision
Provision sets up h's configuration.
modules/caddyhttp/headers/headers.go:57
↓ 1 callers
Method
Provision
Provision sets up the header operations.
modules/caddyhttp/headers/headers.go:135
↓ 1 callers
Method
Provision
Provision sets up m's defaults.
modules/caddyhttp/fileserver/matcher.go:274
↓ 1 callers
Method
Provision
Provision sets up the static files responder.
modules/caddyhttp/fileserver/staticfiles.go:194
↓ 1 callers
Method
ProvisionHandlers
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:225
↓ 1 callers
Method
ProvisionMatchers
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:211
↓ 1 callers
Method
ProxyProtocolEnabled
()
modules/caddyhttp/reverseproxy/reverseproxy.go:1752
↓ 1 callers
Method
PublishECHConfigList
Publishes the ECH config list (as binary) for the given innerNames. Some publishers may not need a list of inner/protected names, and can ignore the a
modules/caddytls/ech.go:1162
↓ 1 callers
Method
PublisherKey
Returns a key that is unique to this publisher and its configuration. A publisher's ID combined with its config is a valid key. It is used to prevent
modules/caddytls/ech.go:1152
↓ 1 callers
Method
Read
(p []byte)
modules/caddyhttp/reverseproxy/reverseproxy.go:460
↓ 1 callers
Method
ReadFrom
(p []byte)
listen.go:241
↓ 1 callers
Function
Ready
()
notify/notify_other.go:19
↓ 1 callers
Method
RebuildCertMagic
RebuildCertMagic rebuilds the policy's CertMagic configuration from the policy's already-populated fields (Issuers, Managers, storage, etc.) and repla
modules/caddytls/automation.go:397
↓ 1 callers
Method
RecordMetric
(statusCode int, latency time.Duration)
modules/caddyhttp/reverseproxy/healthchecks.go:265
↓ 1 callers
Function
RegisterAdapter
RegisterAdapter registers a config adapter with the given name. This should usually be done at init-time. It panics if the adapter cannot be registere
caddyconfig/configadapters.go:111
↓ 1 callers
Method
RegisterOnShutdown
RegisterOnShutdown registers f to be invoked when the server begins to shut down.
modules/caddyhttp/server.go:745
↓ 1 callers
Function
Reloading
()
notify/notify_other.go:20
↓ 1 callers
Method
RemainingArgsRaw
RemainingArgsRaw loads any more arguments (tokens on the same line, retaining quotes) into a slice of strings and returns them. Open curly brace token
caddyconfig/caddyfile/dispenser.go:326
↓ 1 callers
Method
RemoteIP
RemoteIP gets the IP address of the connection's remote IP.
modules/caddyhttp/templates/tplcontext.go:281
↓ 1 callers
Function
RemoveMetaFields
RemoveMetaFields removes meta fields like "@id" from a JSON message by using a simple regular expression. (An alternate way to do this would be to del
admin.go:1343
↓ 1 callers
Method
RequestHeaderOps
RequestHeaderOps allows a transport to provide header operations to apply to the request. The transport is asked at provision time to return a HeaderO
modules/caddyhttp/reverseproxy/reverseproxy.go:1777
↓ 1 callers
Method
ResetCache
ResetCache clears any cache entry related to the given request. The next time GetUpstreams is called, it should have new upstream information for the
modules/caddyhttp/reverseproxy/reverseproxy.go:1705
↓ 1 callers
Method
RootKey
RootKey returns the CA's root private key. Since the root key is not cached in memory long-term, it needs to be loaded from storage, which could yield
modules/caddypki/ca.go:195
↓ 1 callers
Method
RoundTrip
RoundTrip implements http.RoundTripper.
modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go:161
↓ 1 callers
Method
Routes
()
admin.go:758
↓ 1 callers
Function
SanitizeCode
(s int)
internal/metrics/metrics.go:8
↓ 1 callers
Method
Select
Select returns an available host, if any.
modules/caddyhttp/reverseproxy/selectionpolicies.go:221
↓ 1 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next Handler)
modules/caddyhttp/staticresp.go:181
↓ 1 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/headers/headers.go:90
↓ 1 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/fileserver/staticfiles.go:269
↓ 1 callers
Method
SetContext
SetContext sets a key-value pair in the context map.
caddyconfig/caddyfile/dispenser.go:474
↓ 1 callers
Function
SetGlobalStatus
SetGlobalStatus assigns the channel through which status updates will be sent to the SCM. This is typically provided by the service handler when the s
notify/notify_windows.go:31
↓ 1 callers
Method
SetKeepAliveConfig
(config net.KeepAliveConfig)
listen.go:125
↓ 1 callers
Function
SetLastConfig
nolint:unused SetLastConfig records the given source file and adapter as the last-known external configuration source. Intended to be called only when
caddy.go:1262
↓ 1 callers
Method
SetReadTimeout
SetReadTimeout sets the read timeout for future calls that read from the fcgi responder. A zero value for t means no timeout will be set.
modules/caddyhttp/reverseproxy/fastcgi/client.go:364
↓ 1 callers
Method
SetRecords
SetRecords sets DNS records in the zone.
caddytest/integration/mockdns_test.go:64
↓ 1 callers
Method
SetScheme
SetScheme ensures that the outbound request req has the scheme set in its URL; the underlying http.Transport requires a scheme to be set. This method
modules/caddyhttp/reverseproxy/httptransport.go:568
↓ 1 callers
Method
SetWriteTimeout
SetWriteTimeout sets the write timeout for future calls that send data to the fcgi responder. A zero value for t means no timeout will be set.
modules/caddyhttp/reverseproxy/fastcgi/client.go:373
↓ 1 callers
Method
SettingsEmpty
SettingsEmpty returns true if p's settings (fields except the matchers) are all empty/unset.
modules/caddytls/connpolicy.go:438
↓ 1 callers
Method
SettingsEqual
SettingsEqual returns true if p's settings (fields except the matchers) are the same as q.
modules/caddytls/connpolicy.go:453
↓ 1 callers
Method
Setup
Setup takes the server blocks which contain tokens, as well as options (e.g. CLI flags) and creates a Caddy config, along with any warnings or an erro
caddyconfig/caddyfile/adapter.go:115
↓ 1 callers
Function
Stop
Stop stops running the current configuration. It is the antithesis of Run(). This function will log any errors that occur during the stopping of indiv
caddy.go:694
↓ 1 callers
Method
Stop
Stop gracefully shuts down the HTTP server.
modules/caddyhttp/app.go:655
↓ 1 callers
Function
Stopping
()
notify/notify_other.go:21
↓ 1 callers
Method
String
()
modules.go:120
↓ 1 callers
Method
String
String reconstructs the address string for human display. The output can be parsed by ParseNetworkAddress(). If the address is a unix socket, any non-
listeners.go:291
↓ 1 callers
Method
String
String returns ws as a string.
modules/caddyhttp/caddyhttp.go:222
↓ 1 callers
Method
Subjects
Subjects returns the list of subjects with all placeholders replaced.
modules/caddytls/automation.go:421
↓ 1 callers
Method
Sync
()
internal/logbuffer.go:66
↓ 1 callers
Method
TLSEnabled
TLSEnabled returns true if TLS is enabled.
modules/caddyhttp/reverseproxy/httptransport.go:590
↓ 1 callers
Method
UnmarshalBinary
UnmarshalBinary decodes the data back into an ECH config. Borrowed from github.com/OmarTariq612/goech with modifications. Original code: Copyright (c
modules/caddytls/ech.go:968
↓ 1 callers
Method
UnmarshalCaddyfile
Syntax: trust_pool inline { trust_der <base64_der_cert>... } The 'trust_der' directive can be specified multiple times.
modules/caddytls/capools.go:95
↓ 1 callers
Method
UnmarshalCaddyfile
Syntax: trust_pool file [<pem_file>...] { pem_file <pem_file>... } The 'pem_file' directive can be specified multiple times.
modules/caddytls/capools.go:185
↓ 1 callers
Method
UnmarshalCaddyfile
Syntax: trust_pool pki_root [<ca_name>...] { authority <ca_name>... } The 'authority' directive can be specified multiple times.
modules/caddytls/capools.go:269
↓ 1 callers
Method
UnmarshalCaddyfile
Syntax: trust_pool pki_intermediate [<ca_name>...] { authority <ca_name>... } The 'authority' directive can be specified multiple times.
modules/caddytls/capools.go:354
↓ 1 callers
Method
UnmarshalCaddyfile
Syntax: trust_pool storage [<storage_keys>...] { storage <storage_module> keys <storage_keys>... } The 'keys' directive can be specified multi
modules/caddytls/capools.go:465
↓ 1 callers
Method
UnmarshalCaddyfile
Syntax: trust_pool http [<endpoints...>] { endpoints <endpoints...> tls <tls_config> } tls_config: ca <ca_module> insecure_skip_veri
modules/caddytls/capools.go:735
↓ 1 callers
Method
UnmarshalCaddyfile
(d *caddyfile.Dispenser)
modules/caddytls/capools.go:808
↓ 1 callers
Method
UnmarshalCaddyfile
Syntax: trust_pool combined { source <module_name> { <module_config> } } The 'source' directive can be specified multiple times. Sources th
modules/caddytls/capools.go:905
↓ 1 callers
Method
UnmarshalCaddyfile
UnmarshalCaddyfile sets up the CustomCertSelectionPolicy from Caddyfile tokens. Syntax: cert_selection { all_tags <values...> any_ta
modules/caddytls/certselection.go:125
← previous
next →
801–900 of 2,647, ranked by callers