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
Function
TestPlaceholderInSearchRegexp
(t *testing.T)
modules/caddyhttp/headers/headers_test.go:324
Function
TestPolicyNormalizeAllowRules
(t *testing.T)
modules/caddypki/acmeserver/policy_test.go:11
Function
TestPolicy_normalizeDenyRules
(t *testing.T)
modules/caddypki/acmeserver/policy_test.go:74
Function
TestPolicy_normalizeRules
(t *testing.T)
modules/caddypki/acmeserver/policy_test.go:137
Function
TestPreferOrder
(t *testing.T)
modules/caddyhttp/encode/encode_test.go:23
Function
TestProvisionSplitPath
(t *testing.T)
modules/caddyhttp/reverseproxy/fastcgi/fastcgi_test.go:13
Function
TestProvisionUpstreamDynamic
TestProvisionUpstreamDynamic verifies that provisionUpstream with dynamic=true uses fillDynamicHost (not the UsagePool) and sets healthCheckPolicy / M
modules/caddyhttp/reverseproxy/dynamic_upstreams_test.go:147
Function
TestProvisionUpstreamStatic
TestProvisionUpstreamStatic verifies that provisionUpstream with dynamic=false uses the UsagePool and does NOT insert into dynamicHosts.
modules/caddyhttp/reverseproxy/dynamic_upstreams_test.go:189
Function
TestProxyProtocolListenerWrapper
TestProxyProtocolListenerWrapper verifies that Caddy's caddy.listeners.proxy_protocol listener wrapper can successfully parse incoming PROXY protocol
caddytest/integration/proxyprotocol_test.go:544
Function
TestProxyProtocolServerAndProxy
TestProxyProtocolServerAndProxy is an end-to-end matrix test that exercises all combinations of PROXY protocol version x transport version.
caddytest/integration/proxyprotocol_test.go:433
Function
TestProxyProtocolV1WithH1
TestProxyProtocolV1WithH1 verifies that PROXY protocol v1 headers are sent correctly when the transport uses HTTP/1.1 to the upstream.
caddytest/integration/proxyprotocol_test.go:382
Function
TestProxyProtocolV1WithH2
TestProxyProtocolV1WithH2 verifies that PROXY protocol v1 headers are sent correctly when the transport uses HTTP/2 over TLS (h2) to the upstream.
caddytest/integration/proxyprotocol_test.go:421
Function
TestProxyProtocolV1WithH2C
TestProxyProtocolV1WithH2C verifies that PROXY protocol v1 headers are sent correctly when the transport uses h2c (HTTP/2 cleartext) to the upstream.
caddytest/integration/proxyprotocol_test.go:394
Function
TestProxyProtocolV2WithH1
TestProxyProtocolV2WithH1 verifies that PROXY protocol v2 headers are sent correctly when the transport uses HTTP/1.1 to the upstream.
caddytest/integration/proxyprotocol_test.go:388
Function
TestProxyProtocolV2WithH2
TestProxyProtocolV2WithH2 verifies that PROXY protocol v2 headers are sent correctly when the transport uses HTTP/2 over TLS (h2) to the upstream.
caddytest/integration/proxyprotocol_test.go:427
Function
TestProxyProtocolV2WithH2C
TestProxyProtocolV2WithH2C verifies that PROXY protocol v2 headers are sent correctly when the transport uses h2c (HTTP/2 cleartext) to the upstream.
caddytest/integration/proxyprotocol_test.go:404
Function
TestProxyProtocolV2WithH2CMultipleRequests
TestProxyProtocolV2WithH2CMultipleRequests sends several sequential requests through the h2c + PROXY-protocol path and confirms that: 1. Every request
caddytest/integration/proxyprotocol_test.go:415
Function
TestQueryFilterMultiValue
(t *testing.T)
modules/logging/filters_test.go:108
Function
TestQueryFilterSingleValue
(t *testing.T)
modules/logging/filters_test.go:89
Function
TestQueryHashPolicy
(t *testing.T)
modules/caddyhttp/reverseproxy/selectionpolicies_test.go:506
Function
TestQueryMatcher
(t *testing.T)
modules/caddyhttp/matchers_test.go:770
Function
TestQueryOpsRenameNoOpCases
(t *testing.T)
modules/caddyhttp/rewrite/rewrite_test.go:431
Function
TestRandomChoicePolicy
(t *testing.T)
modules/caddyhttp/reverseproxy/selectionpolicies_test.go:660
Function
TestReadCookie
(t *testing.T)
caddytest/integration/caddyfile_test.go:75
Function
TestRecursiveImport
(t *testing.T)
caddyconfig/caddyfile/parse_test.go:374
Function
TestRedirDirectiveSyntax
(t *testing.T)
caddyconfig/httpcaddyfile/builtins_test.go:98
Function
TestRedirect
(t *testing.T)
caddytest/integration/caddyfile_test.go:33
Function
TestRegexpFilterMultiValue
(t *testing.T)
modules/logging/filters_test.go:203
Function
TestRegexpFilterSingleValue
(t *testing.T)
modules/logging/filters_test.go:193
Function
TestRegisterServerNamesWithALPN
(t *testing.T)
modules/caddytls/ech_dns_test.go:12
Function
TestRejectAnonymousImportBlock
(t *testing.T)
caddyconfig/caddyfile/parse_test.go:888
Function
TestRejectsGlobalMatcher
(t *testing.T)
caddyconfig/caddyfile/parse_test.go:865
Function
TestRemoteAdminAccessControlPathSegmentMatching
(t *testing.T)
admin_test.go:659
Function
TestRemoteIPMatcher
(t *testing.T)
modules/caddytls/matchers_test.go:158
Function
TestRenameAndOtherOps
(t *testing.T)
caddytest/integration/caddyfile_test.go:573
Function
TestReplIndex
(t *testing.T)
caddytest/integration/caddyfile_test.go:108
Function
TestReplaceAllOps
(t *testing.T)
caddytest/integration/caddyfile_test.go:662
Function
TestReplaceCertificatePaths
(t *testing.T)
caddytest/caddytest_test.go:10
Function
TestReplaceOps
(t *testing.T)
caddytest/integration/caddyfile_test.go:591
Function
TestReplaceRemoteAdminServer
(t *testing.T)
admin_test.go:752
Function
TestReplaceWithKeyPlaceholder
(t *testing.T)
caddytest/integration/caddyfile_test.go:620
Function
TestReplaceWithReplacementPlaceholder
(t *testing.T)
caddytest/integration/caddyfile_test.go:606
Function
TestReplacer
(t *testing.T)
replacer_test.go:26
Function
TestReplacerDelete
(t *testing.T)
replacer_test.go:313
Function
TestReplacerMap
(t *testing.T)
replacer_test.go:347
Function
TestReplacerNew
(t *testing.T)
replacer_test.go:374
Function
TestReplacerNewWithoutFile
(t *testing.T)
replacer_test.go:460
Function
TestReplacerReplaceKnown
(t *testing.T)
replacer_test.go:240
Function
TestReplacerSet
(t *testing.T)
replacer_test.go:181
Function
TestRequestOnlyMatcherDoesNotRetryResponses
TestRequestOnlyMatcherDoesNotRetryResponses verifies that a pure request matcher like method PUT in lb_retry_match does NOT trigger response-based ret
modules/caddyhttp/reverseproxy/retries_test.go:523
Function
TestResolveIpVersion
(t *testing.T)
modules/caddyhttp/reverseproxy/upstreams_test.go:5
Function
TestRespond
(t *testing.T)
caddytest/integration/caddyfile_test.go:11
Function
TestRespondWithJSON
(t *testing.T)
caddytest/integration/handler_test.go:34
Function
TestResponseMatcher
(t *testing.T)
modules/caddyhttp/responsematchers_test.go:22
Function
TestResponseRecorderReadFrom
(t *testing.T)
modules/caddyhttp/responsewriter_test.go:104
Function
TestResponseRetryExhaustedPreservesStatusCode
TestResponseRetryExhaustedPreservesStatusCode verifies that when retries are exhausted, the actual upstream status code (e.g. 503) is reported to the
modules/caddyhttp/reverseproxy/retries_test.go:426
Function
TestResponseRetryHeader
TestResponseRetryHeader verifies that response header matching triggers retries via a CEL expression checking {rp.header.*}
modules/caddyhttp/reverseproxy/retries_test.go:335
Function
TestResponseRetryHeaderCleanup
TestResponseRetryHeaderCleanup verifies that stale response header placeholders from a previous upstream attempt are cleaned up before the next retry
modules/caddyhttp/reverseproxy/retries_test.go:471
Function
TestResponseRetryNoMatchNoRetry
TestResponseRetryNoMatchNoRetry verifies that when no retry_match entries match the response, the original response is returned without retrying
modules/caddyhttp/reverseproxy/retries_test.go:386
Function
TestResponseRetryStatusCode
TestResponseRetryStatusCode verifies that when an upstream returns a status code matching a retry_match expression, the request is retried on the next
modules/caddyhttp/reverseproxy/retries_test.go:285
Function
TestResponseWriterWrapperReadFrom
(t *testing.T)
modules/caddyhttp/responsewriter_test.go:47
Function
TestResponseWriterWrapperUnwrap
(t *testing.T)
modules/caddyhttp/responsewriter_test.go:96
Function
TestRetryMatchAllowsExpressionMixedWithOtherMatchers
TestRetryMatchAllowsExpressionMixedWithOtherMatchers verifies that lb_retry_match accepts a block mixing expression with other matchers
modules/caddyhttp/reverseproxy/retries_test.go:681
Function
TestReverseProxyHealthCheck
(t *testing.T)
caddytest/integration/reverseproxy_test.go:329
Function
TestReverseProxyHealthCheckPortUsed
TestReverseProxyHealthCheckPortUsed verifies that health_port is actually used for active health checks and not the upstream's main port. This is a re
caddytest/integration/reverseproxy_test.go:393
Function
TestReverseProxyHealthCheckUnixSocket
(t *testing.T)
caddytest/integration/reverseproxy_test.go:452
Function
TestReverseProxyHealthCheckUnixSocketWithoutPort
(t *testing.T)
caddytest/integration/reverseproxy_test.go:510
Function
TestReverseProxyRetryMatchCombined
TestReverseProxyRetryMatchCombined verifies that a CEL expression combining request path matching with response status code matching works correctly -
caddytest/integration/reverseproxy_test.go:685
Function
TestReverseProxyRetryMatchHeader
TestReverseProxyRetryMatchHeader verifies that lb_retry_match with a CEL expression matching on {rp.header.*} causes the request to be retried when th
caddytest/integration/reverseproxy_test.go:624
Function
TestReverseProxyRetryMatchIsTransportError
TestReverseProxyRetryMatchIsTransportError verifies that the {rp.is_transport_error} == true CEL function correctly identifies transport errors and al
caddytest/integration/reverseproxy_test.go:743
Function
TestReverseProxyRetryMatchStatusCode
TestReverseProxyRetryMatchStatusCode verifies that lb_retry_match with a CEL expression matching on {rp.status_code} causes the request to be retried
caddytest/integration/reverseproxy_test.go:571
Function
TestReverseProxyWithPlaceholderDialAddress
(t *testing.T)
caddytest/integration/reverseproxy_test.go:141
Function
TestReverseProxyWithPlaceholderTCPDialAddress
(t *testing.T)
caddytest/integration/reverseproxy_test.go:235
Function
TestRewrite
(t *testing.T)
modules/caddyhttp/rewrite/rewrite_test.go:27
Function
TestRoundRobinPolicy
(t *testing.T)
modules/caddyhttp/reverseproxy/selectionpolicies_test.go:36
Function
TestSRVReverseProxy
(t *testing.T)
caddytest/integration/reverseproxy_test.go:16
Function
TestSanitizeMethod
(t *testing.T)
internal/metrics/metrics_test.go:8
Function
TestSanitizedPathJoin
(t *testing.T)
modules/caddyhttp/caddyhttp_test.go:10
Function
TestServeHTTPDefaultEncodingPreference
(t *testing.T)
modules/caddyhttp/encode/encode_test.go:312
Function
TestServerNameFromContext
(t *testing.T)
modules/caddyhttp/metrics_test.go:18
Function
TestServerNameMatcher
(t *testing.T)
modules/caddytls/matchers_test.go:26
Function
TestServerNameREMatcher
(t *testing.T)
modules/caddytls/matchers_test.go:112
Function
TestServer_DetermineTrustedProxy_MatchLeftMostValidIp
(t *testing.T)
modules/caddyhttp/server_test.go:400
Function
TestServer_DetermineTrustedProxy_MatchRightMostUntrusted
(t *testing.T)
modules/caddyhttp/server_test.go:420
Function
TestServer_DetermineTrustedProxy_MatchRightMostUntrustedFirst
(t *testing.T)
modules/caddyhttp/server_test.go:558
Function
TestServer_DetermineTrustedProxy_MatchRightMostUntrustedSkippingEmpty
(t *testing.T)
modules/caddyhttp/server_test.go:441
Function
TestServer_DetermineTrustedProxy_MatchRightMostUntrustedSkippingTrusted
(t *testing.T)
modules/caddyhttp/server_test.go:463
Function
TestServer_DetermineTrustedProxy_MultipleTrustedClientHeaders
(t *testing.T)
modules/caddyhttp/server_test.go:378
Function
TestServer_DetermineTrustedProxy_MultipleTrustedPrefixes
(t *testing.T)
modules/caddyhttp/server_test.go:357
Function
TestServer_DetermineTrustedProxy_NoConfig
(t *testing.T)
modules/caddyhttp/server_test.go:248
Function
TestServer_DetermineTrustedProxy_NoConfigIpv6
(t *testing.T)
modules/caddyhttp/server_test.go:260
Function
TestServer_DetermineTrustedProxy_NoConfigIpv6Zones
(t *testing.T)
modules/caddyhttp/server_test.go:272
Function
TestServer_DetermineTrustedProxy_TrustedLoopback
(t *testing.T)
modules/caddyhttp/server_test.go:284
Function
TestServer_DetermineTrustedProxy_UnixSocket
(t *testing.T)
modules/caddyhttp/server_test.go:304
Function
TestServer_DetermineTrustedProxy_UnixSocketStrict
(t *testing.T)
modules/caddyhttp/server_test.go:320
Function
TestServer_DetermineTrustedProxy_UntrustedPrefix
(t *testing.T)
modules/caddyhttp/server_test.go:337
Function
TestServer_LogRequest
(t *testing.T)
modules/caddyhttp/server_test.go:51
Function
TestServer_LogRequest_WithTrace
(t *testing.T)
modules/caddyhttp/server_test.go:76
Function
TestServer_SpaceInHeaderNameReturnsBadRequest
TestServer_SpaceInHeaderNameReturnsBadRequest documents why the underscore filter does not also strip space-named headers: Go's HTTP parser rejects a
modules/caddyhttp/server_test.go:534
Function
TestServer_TrustedRealClientIP_IncludesPort
(t *testing.T)
modules/caddyhttp/server_test.go:216
← previous
next →
2,101–2,200 of 2,647, ranked by callers