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
Method
Provision
(ctx caddy.Context)
modules/caddyhttp/requestbody/requestbody.go:62
Method
Provision
Provision -
modules/metrics/adminmetrics.go:50
Method
Provision
Provision sets up m.
modules/metrics/metrics.go:64
Method
Provision
Provision sets up the encoder.
modules/logging/appendencoder.go:73
Method
Provision
Provision sets up the encoder.
modules/logging/filterencoder.go:80
Method
Provision
Provision sets up the module
modules/logging/filewriter.go:161
Method
Provision
Provision sets up the module.
modules/logging/netwriter.go:60
Method
Provision
Provision sets up the encoder.
modules/logging/encoders.go:48
Method
Provision
Provision sets up the encoder.
modules/logging/encoders.go:94
Method
Provision
(ctx caddy.Context)
modules/internal/network/networkproxy.go:38
Method
Provision
Provision sets up the app.
modules/caddyevents/app.go:120
Method
Provision
Provision sets up the module.
caddytest/integration/mockdns_test.go:31
Function
ProvisionContext
ProvisionContext creates a new context from the configuration and provisions storage and app modules. The function is intended for testing and advance
caddy.go:589
Method
ProxyFunc
ProxyFunc implements ProxyFuncProducer.
modules/internal/network/networkproxy.go:53
Method
ProxyFunc
ProxyFunc implements ProxyFuncProducer.
modules/internal/network/networkproxy.go:130
Method
ProxyProtocolEnabled
ProxyProtocolEnabled returns true if proxy protocol is enabled.
modules/caddyhttp/reverseproxy/httptransport.go:616
Method
PublishECHConfigList
PublishECHConfigList publishes the given ECH config list (as binary) to the given DNS names. If there is an error, it may be of type PublishECHConfigL
modules/caddytls/ech.go:821
Method
PublisherKey
PublisherKey returns the name of the DNS provider module. We intentionally omit specific provider configuration (or a hash thereof, since the config i
modules/caddytls/ech.go:814
Method
Read
Read tries to peek at the first few bytes of the request, and if we get an error reading the headers, and that error was due to the bytes looking like
modules/caddyhttp/httpredirectlistener.go:106
Method
Read
(p []byte)
modules/caddyhttp/responsewriter.go:290
Method
Read
(p []byte)
modules/caddyhttp/http2listener.go:104
Method
Read
(p []byte)
modules/caddyhttp/reverseproxy/retries_test.go:47
Method
Read
(b []byte)
modules/caddyhttp/reverseproxy/httptransport.go:838
Method
Read
(p []byte)
modules/caddyhttp/reverseproxy/buffering_test.go:10
Method
Read
(p []byte)
modules/caddyhttp/reverseproxy/fastcgi/reader.go:28
Method
Read
(p []byte)
modules/caddyhttp/requestbody/requestbody.go:113
Method
ReadFrom
ReadFrom implements io.ReaderFrom. It retries to use io.ReaderFrom if available, then fallback to io.Copy. see: https://github.com/caddyserver/caddy/i
modules/caddyhttp/responsewriter.go:48
Method
ReadFrom
(r io.Reader)
modules/caddyhttp/responsewriter.go:189
Method
ReadFrom
(r io.Reader)
modules/caddyhttp/responsewriter_test.go:40
Method
ReadFrom
ReadFrom will try to use sendfile to copy from the reader to the response writer. It's only used if the response writer implements io.ReaderFrom and t
modules/caddyhttp/encode/encode.go:382
Function
Ready
Ready notifies the SCM that the service is fully running and ready to accept stop or shutdown control requests.
notify/notify_windows.go:37
Function
Ready
Ready notifies systemd that caddy has finished its initialization routines.
notify/notify_linux.go:51
Method
Register
Register will add the filesystem with key to later be retrieved A call with a nil fs will call unregister, ensuring that a call to Default() will neve
internal/filesystems/map.go:38
Method
RegisterConnContext
RegisterConnContext registers f to be invoked as part of s.ConnContext.
modules/caddyhttp/server.go:740
Method
RegisterConnState
RegisterConnState registers f to be invoked on s.ConnState.
modules/caddyhttp/server.go:735
Function
RegisterDirectiveOrder
RegisterDirectiveOrder registers the default order for a directive from a plugin. This is useful when a plugin has a well-understood place it should
caddyconfig/httpcaddyfile/directives.go:153
Function
RegisterNetwork
RegisterNetwork registers a network type with Caddy so that if a listener is created for that network type, getListener will be invoked to get the lis
listeners.go:664
Function
RegisterNetworkHTTP3
RegisterNetworkHTTP3 registers a mapping from non-HTTP/3 network to HTTP/3 network. This should be called during init() and will panic if the network
modules/caddyhttp/server.go:1234
Method
RegisterOnStop
RegisterOnStop registers f to be invoked after the server has shut down completely. EXPERIMENTAL: Subject to change or removal.
modules/caddyhttp/server.go:752
Function
RegisterSlogHandlerFactory
RegisterSlogHandlerFactory allows modules to register custom log/slog.Handler, for instance, to add contextual data to the logs.
context.go:604
Function
Reloading
Reloading notifies the SCM that the service is entering a transitional state.
notify/notify_windows.go:49
Function
Reloading
Reloading notifies systemd that caddy is reloading its config.
notify/notify_linux.go:56
Method
Reset
(w io.Writer)
modules/caddyhttp/encode/encode_test.go:309
Method
Reset
Reset sets d's cursor to the beginning, as if this was a new and unused dispenser.
caddyconfig/caddyfile/dispenser.go:399
Method
ResetCache
(r *http.Request)
modules/caddyhttp/reverseproxy/upstreams.go:122
Method
ResolveName
(name string)
modules/caddyhttp/celmatcher.go:292
Method
Revoke
Revoke revokes the given certificate.
modules/caddytls/zerosslissuer.go:123
Method
Revoke
Revoke revokes the given certificate.
modules/caddytls/acmeissuer.go:346
Method
RoundTrip
(req *http.Request)
modules/caddyhttp/reverseproxy/retries_test.go:87
Method
RoundTrip
RoundTrip implements http.RoundTripper.
modules/caddyhttp/reverseproxy/httptransport.go:551
Method
Routes
()
admin_test.go:415
Method
Routes
Routes returns the admin routes for the PKI app.
modules/caddypki/adminapi.go:65
Method
Routes
Routes returns a route for the /reverse_proxy/upstreams endpoint.
modules/caddyhttp/reverseproxy/admin.go:51
Method
Routes
Routes returns a route for the /metrics endpoint.
modules/metrics/adminmetrics.go:60
Method
Routes
Routes returns a route for the /load endpoint.
caddyconfig/load.go:55
Function
Run
Run runs the given config, replacing any existing config.
caddy.go:104
Method
Select
Select returns an available host, if any.
modules/caddyhttp/reverseproxy/selectionpolicies.go:67
Method
Select
Select returns an available host, if any.
modules/caddyhttp/reverseproxy/selectionpolicies.go:570
Method
SelectCertificate
SelectCertificate implements certmagic.CertificateSelector. It only chooses a certificate that at least meets the criteria in p. It then chooses the f
modules/caddytls/certselection.go:56
Method
ServeHTTP
ServeHTTP implements the Handler interface.
admin.go:1368
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddypki/acmeserver/acmeserver.go:235
Method
ServeHTTP
ServeHTTP is the entry point for all HTTP requests.
modules/caddyhttp/server.go:311
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next Handler)
modules/caddyhttp/subroute.go:72
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
modules/caddyhttp/metrics.go:314
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, _ Handler)
modules/caddyhttp/staticerror.go:97
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next Handler)
modules/caddyhttp/invoke.go:45
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next Handler)
modules/caddyhttp/vars.go:57
Method
ServeHTTP
ServeHTTP implements the Handler interface.
modules/caddyhttp/caddyhttp.go:73
Method
ServeHTTP
(http.ResponseWriter, *http.Request, Handler)
modules/caddyhttp/caddyhttp.go:91
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/rewrite/rewrite.go:132
Method
ServeHTTP
EXPERIMENTAL: Subject to change or removal.
modules/caddyhttp/intercept/intercept.go:128
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/encode/encode.go:162
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/logging/logappend.go:63
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
modules/caddyhttp/templates/tplcontext_test.go:37
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/templates/templates.go:438
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/push/handler.go:76
Method
ServeHTTP
ServeHTTP implements the Handler interface.
modules/caddyhttp/reverseproxy/copyresponse.go:58
Method
ServeHTTP
ServeHTTP implements the Handler interface.
modules/caddyhttp/reverseproxy/copyresponse.go:145
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/reverseproxy/reverseproxy.go:485
Method
ServeHTTP
(resp http.ResponseWriter, req *http.Request)
modules/caddyhttp/reverseproxy/fastcgi/client_test.go:59
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/map/map.go:124
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/requestbody/requestbody.go:67
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
modules/caddyhttp/headers/headers_test.go:272
Method
ServeHTTP
ServeHTTP propagates call to the by wrapped by `otelhttp` next handler.
modules/caddyhttp/tracing/tracer.go:124
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/metrics/metrics.go:103
Method
SetConfig
(cfg *certmagic.Config)
admin_test.go:893
Method
SetConfig
SetConfig sets the associated certmagic config for this issuer. This is required because ACME needs values from the config in order to solve the chall
modules/caddytls/acmeissuer.go:325
Method
Setup
Setup makes a config from the tokens.
caddyconfig/httpcaddyfile/httptype.go:57
Method
Size
Size returns the number of bytes written, not including the response headers.
modules/caddyhttp/responsewriter.go:210
Method
Slogger
Slogger returns a slog logger that is intended for use by the most recent module associated with the context.
context.go:612
Method
Start
()
admin_test.go:185
Method
Start
Start starts the PKI app.
modules/caddypki/pki.go:91
Method
Start
Start activates the TLS module.
modules/caddytls/tls.go:401
Method
Start
()
modules/caddyfs/filesystem.go:57
Method
Start
Start runs the app. It finishes automatic HTTPS if enabled, including management of certificates.
modules/caddyhttp/app.go:446
Method
Start
Start runs the app.
modules/caddyevents/app.go:145
Function
Status
(_ string)
notify/notify_other.go:22
Function
Status
Status sends an arbitrary service state to the SCM based on a string identifier of [svc.State]. The unknown states will be logged.
notify/notify_windows.go:68
Function
Status
Status sends systemd an updated status message.
notify/notify_linux.go:66
Method
Status
Status returns the status code that was written, if any.
modules/caddyhttp/responsewriter.go:204
← previous
next →
1,701–1,800 of 2,647, ranked by callers