MCPcopy Create free account

hub / github.com/caddyserver/caddy / functions

Functions2,647 in github.com/caddyserver/caddy

MethodProvision
(ctx caddy.Context)
modules/caddyhttp/requestbody/requestbody.go:62
MethodProvision
Provision -
modules/metrics/adminmetrics.go:50
MethodProvision
Provision sets up m.
modules/metrics/metrics.go:64
MethodProvision
Provision sets up the encoder.
modules/logging/appendencoder.go:73
MethodProvision
Provision sets up the encoder.
modules/logging/filterencoder.go:80
MethodProvision
Provision sets up the module
modules/logging/filewriter.go:161
MethodProvision
Provision sets up the module.
modules/logging/netwriter.go:60
MethodProvision
Provision sets up the encoder.
modules/logging/encoders.go:48
MethodProvision
Provision sets up the encoder.
modules/logging/encoders.go:94
MethodProvision
(ctx caddy.Context)
modules/internal/network/networkproxy.go:38
MethodProvision
Provision sets up the app.
modules/caddyevents/app.go:120
MethodProvision
Provision sets up the module.
caddytest/integration/mockdns_test.go:31
FunctionProvisionContext
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
MethodProxyFunc
ProxyFunc implements ProxyFuncProducer.
modules/internal/network/networkproxy.go:53
MethodProxyFunc
ProxyFunc implements ProxyFuncProducer.
modules/internal/network/networkproxy.go:130
MethodProxyProtocolEnabled
ProxyProtocolEnabled returns true if proxy protocol is enabled.
modules/caddyhttp/reverseproxy/httptransport.go:616
MethodPublishECHConfigList
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
MethodPublisherKey
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
MethodRead
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
MethodRead
(p []byte)
modules/caddyhttp/responsewriter.go:290
MethodRead
(p []byte)
modules/caddyhttp/http2listener.go:104
MethodRead
(p []byte)
modules/caddyhttp/reverseproxy/retries_test.go:47
MethodRead
(b []byte)
modules/caddyhttp/reverseproxy/httptransport.go:838
MethodRead
(p []byte)
modules/caddyhttp/reverseproxy/buffering_test.go:10
MethodRead
(p []byte)
modules/caddyhttp/reverseproxy/fastcgi/reader.go:28
MethodRead
(p []byte)
modules/caddyhttp/requestbody/requestbody.go:113
MethodReadFrom
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
MethodReadFrom
(r io.Reader)
modules/caddyhttp/responsewriter.go:189
MethodReadFrom
(r io.Reader)
modules/caddyhttp/responsewriter_test.go:40
MethodReadFrom
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
FunctionReady
Ready notifies the SCM that the service is fully running and ready to accept stop or shutdown control requests.
notify/notify_windows.go:37
FunctionReady
Ready notifies systemd that caddy has finished its initialization routines.
notify/notify_linux.go:51
MethodRegister
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
MethodRegisterConnContext
RegisterConnContext registers f to be invoked as part of s.ConnContext.
modules/caddyhttp/server.go:740
MethodRegisterConnState
RegisterConnState registers f to be invoked on s.ConnState.
modules/caddyhttp/server.go:735
FunctionRegisterDirectiveOrder
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
FunctionRegisterNetwork
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
FunctionRegisterNetworkHTTP3
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
MethodRegisterOnStop
RegisterOnStop registers f to be invoked after the server has shut down completely. EXPERIMENTAL: Subject to change or removal.
modules/caddyhttp/server.go:752
FunctionRegisterSlogHandlerFactory
RegisterSlogHandlerFactory allows modules to register custom log/slog.Handler, for instance, to add contextual data to the logs.
context.go:604
FunctionReloading
Reloading notifies the SCM that the service is entering a transitional state.
notify/notify_windows.go:49
FunctionReloading
Reloading notifies systemd that caddy is reloading its config.
notify/notify_linux.go:56
MethodReset
(w io.Writer)
modules/caddyhttp/encode/encode_test.go:309
MethodReset
Reset sets d's cursor to the beginning, as if this was a new and unused dispenser.
caddyconfig/caddyfile/dispenser.go:399
MethodResetCache
(r *http.Request)
modules/caddyhttp/reverseproxy/upstreams.go:122
MethodResolveName
(name string)
modules/caddyhttp/celmatcher.go:292
MethodRevoke
Revoke revokes the given certificate.
modules/caddytls/zerosslissuer.go:123
MethodRevoke
Revoke revokes the given certificate.
modules/caddytls/acmeissuer.go:346
MethodRoundTrip
(req *http.Request)
modules/caddyhttp/reverseproxy/retries_test.go:87
MethodRoundTrip
RoundTrip implements http.RoundTripper.
modules/caddyhttp/reverseproxy/httptransport.go:551
MethodRoutes
()
admin_test.go:415
MethodRoutes
Routes returns the admin routes for the PKI app.
modules/caddypki/adminapi.go:65
MethodRoutes
Routes returns a route for the /reverse_proxy/upstreams endpoint.
modules/caddyhttp/reverseproxy/admin.go:51
MethodRoutes
Routes returns a route for the /metrics endpoint.
modules/metrics/adminmetrics.go:60
MethodRoutes
Routes returns a route for the /load endpoint.
caddyconfig/load.go:55
FunctionRun
Run runs the given config, replacing any existing config.
caddy.go:104
MethodSelect
Select returns an available host, if any.
modules/caddyhttp/reverseproxy/selectionpolicies.go:67
MethodSelect
Select returns an available host, if any.
modules/caddyhttp/reverseproxy/selectionpolicies.go:570
MethodSelectCertificate
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
MethodServeHTTP
ServeHTTP implements the Handler interface.
admin.go:1368
MethodServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddypki/acmeserver/acmeserver.go:235
MethodServeHTTP
ServeHTTP is the entry point for all HTTP requests.
modules/caddyhttp/server.go:311
MethodServeHTTP
(w http.ResponseWriter, r *http.Request, next Handler)
modules/caddyhttp/subroute.go:72
MethodServeHTTP
(w http.ResponseWriter, r *http.Request)
modules/caddyhttp/metrics.go:314
MethodServeHTTP
(w http.ResponseWriter, r *http.Request, _ Handler)
modules/caddyhttp/staticerror.go:97
MethodServeHTTP
(w http.ResponseWriter, r *http.Request, next Handler)
modules/caddyhttp/invoke.go:45
MethodServeHTTP
(w http.ResponseWriter, r *http.Request, next Handler)
modules/caddyhttp/vars.go:57
MethodServeHTTP
ServeHTTP implements the Handler interface.
modules/caddyhttp/caddyhttp.go:73
MethodServeHTTP
(http.ResponseWriter, *http.Request, Handler)
modules/caddyhttp/caddyhttp.go:91
MethodServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/rewrite/rewrite.go:132
MethodServeHTTP
EXPERIMENTAL: Subject to change or removal.
modules/caddyhttp/intercept/intercept.go:128
MethodServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/encode/encode.go:162
MethodServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/logging/logappend.go:63
MethodServeHTTP
(w http.ResponseWriter, r *http.Request)
modules/caddyhttp/templates/tplcontext_test.go:37
MethodServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/templates/templates.go:438
MethodServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/push/handler.go:76
MethodServeHTTP
ServeHTTP implements the Handler interface.
modules/caddyhttp/reverseproxy/copyresponse.go:58
MethodServeHTTP
ServeHTTP implements the Handler interface.
modules/caddyhttp/reverseproxy/copyresponse.go:145
MethodServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/reverseproxy/reverseproxy.go:485
MethodServeHTTP
(resp http.ResponseWriter, req *http.Request)
modules/caddyhttp/reverseproxy/fastcgi/client_test.go:59
MethodServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/map/map.go:124
MethodServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/caddyhttp/requestbody/requestbody.go:67
MethodServeHTTP
(w http.ResponseWriter, r *http.Request)
modules/caddyhttp/headers/headers_test.go:272
MethodServeHTTP
ServeHTTP propagates call to the by wrapped by `otelhttp` next handler.
modules/caddyhttp/tracing/tracer.go:124
MethodServeHTTP
(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler)
modules/metrics/metrics.go:103
MethodSetConfig
(cfg *certmagic.Config)
admin_test.go:893
MethodSetConfig
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
MethodSetup
Setup makes a config from the tokens.
caddyconfig/httpcaddyfile/httptype.go:57
MethodSize
Size returns the number of bytes written, not including the response headers.
modules/caddyhttp/responsewriter.go:210
MethodSlogger
Slogger returns a slog logger that is intended for use by the most recent module associated with the context.
context.go:612
MethodStart
()
admin_test.go:185
MethodStart
Start starts the PKI app.
modules/caddypki/pki.go:91
MethodStart
Start activates the TLS module.
modules/caddytls/tls.go:401
MethodStart
()
modules/caddyfs/filesystem.go:57
MethodStart
Start runs the app. It finishes automatic HTTPS if enabled, including management of certificates.
modules/caddyhttp/app.go:446
MethodStart
Start runs the app.
modules/caddyevents/app.go:145
FunctionStatus
(_ string)
notify/notify_other.go:22
FunctionStatus
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
FunctionStatus
Status sends systemd an updated status message.
notify/notify_linux.go:66
MethodStatus
Status returns the status code that was written, if any.
modules/caddyhttp/responsewriter.go:204
← previousnext →1,701–1,800 of 2,647, ranked by callers