MCPcopy Create free account

hub / github.com/caddyserver/caddy / functions

Functions2,647 in github.com/caddyserver/caddy

FunctionTestPlaceholderInSearchRegexp
(t *testing.T)
modules/caddyhttp/headers/headers_test.go:324
FunctionTestPolicyNormalizeAllowRules
(t *testing.T)
modules/caddypki/acmeserver/policy_test.go:11
FunctionTestPolicy_normalizeDenyRules
(t *testing.T)
modules/caddypki/acmeserver/policy_test.go:74
FunctionTestPolicy_normalizeRules
(t *testing.T)
modules/caddypki/acmeserver/policy_test.go:137
FunctionTestPreferOrder
(t *testing.T)
modules/caddyhttp/encode/encode_test.go:23
FunctionTestProvisionSplitPath
(t *testing.T)
modules/caddyhttp/reverseproxy/fastcgi/fastcgi_test.go:13
FunctionTestProvisionUpstreamDynamic
TestProvisionUpstreamDynamic verifies that provisionUpstream with dynamic=true uses fillDynamicHost (not the UsagePool) and sets healthCheckPolicy / M
modules/caddyhttp/reverseproxy/dynamic_upstreams_test.go:147
FunctionTestProvisionUpstreamStatic
TestProvisionUpstreamStatic verifies that provisionUpstream with dynamic=false uses the UsagePool and does NOT insert into dynamicHosts.
modules/caddyhttp/reverseproxy/dynamic_upstreams_test.go:189
FunctionTestProxyProtocolListenerWrapper
TestProxyProtocolListenerWrapper verifies that Caddy's caddy.listeners.proxy_protocol listener wrapper can successfully parse incoming PROXY protocol
caddytest/integration/proxyprotocol_test.go:544
FunctionTestProxyProtocolServerAndProxy
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
FunctionTestProxyProtocolV1WithH1
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
FunctionTestProxyProtocolV1WithH2
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
FunctionTestProxyProtocolV1WithH2C
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
FunctionTestProxyProtocolV2WithH1
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
FunctionTestProxyProtocolV2WithH2
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
FunctionTestProxyProtocolV2WithH2C
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
FunctionTestProxyProtocolV2WithH2CMultipleRequests
TestProxyProtocolV2WithH2CMultipleRequests sends several sequential requests through the h2c + PROXY-protocol path and confirms that: 1. Every request
caddytest/integration/proxyprotocol_test.go:415
FunctionTestQueryFilterMultiValue
(t *testing.T)
modules/logging/filters_test.go:108
FunctionTestQueryFilterSingleValue
(t *testing.T)
modules/logging/filters_test.go:89
FunctionTestQueryHashPolicy
(t *testing.T)
modules/caddyhttp/reverseproxy/selectionpolicies_test.go:506
FunctionTestQueryMatcher
(t *testing.T)
modules/caddyhttp/matchers_test.go:770
FunctionTestQueryOpsRenameNoOpCases
(t *testing.T)
modules/caddyhttp/rewrite/rewrite_test.go:431
FunctionTestRandomChoicePolicy
(t *testing.T)
modules/caddyhttp/reverseproxy/selectionpolicies_test.go:660
FunctionTestReadCookie
(t *testing.T)
caddytest/integration/caddyfile_test.go:75
FunctionTestRecursiveImport
(t *testing.T)
caddyconfig/caddyfile/parse_test.go:374
FunctionTestRedirDirectiveSyntax
(t *testing.T)
caddyconfig/httpcaddyfile/builtins_test.go:98
FunctionTestRedirect
(t *testing.T)
caddytest/integration/caddyfile_test.go:33
FunctionTestRegexpFilterMultiValue
(t *testing.T)
modules/logging/filters_test.go:203
FunctionTestRegexpFilterSingleValue
(t *testing.T)
modules/logging/filters_test.go:193
FunctionTestRegisterServerNamesWithALPN
(t *testing.T)
modules/caddytls/ech_dns_test.go:12
FunctionTestRejectAnonymousImportBlock
(t *testing.T)
caddyconfig/caddyfile/parse_test.go:888
FunctionTestRejectsGlobalMatcher
(t *testing.T)
caddyconfig/caddyfile/parse_test.go:865
FunctionTestRemoteAdminAccessControlPathSegmentMatching
(t *testing.T)
admin_test.go:659
FunctionTestRemoteIPMatcher
(t *testing.T)
modules/caddytls/matchers_test.go:158
FunctionTestRenameAndOtherOps
(t *testing.T)
caddytest/integration/caddyfile_test.go:573
FunctionTestReplIndex
(t *testing.T)
caddytest/integration/caddyfile_test.go:108
FunctionTestReplaceAllOps
(t *testing.T)
caddytest/integration/caddyfile_test.go:662
FunctionTestReplaceCertificatePaths
(t *testing.T)
caddytest/caddytest_test.go:10
FunctionTestReplaceOps
(t *testing.T)
caddytest/integration/caddyfile_test.go:591
FunctionTestReplaceRemoteAdminServer
(t *testing.T)
admin_test.go:752
FunctionTestReplaceWithKeyPlaceholder
(t *testing.T)
caddytest/integration/caddyfile_test.go:620
FunctionTestReplaceWithReplacementPlaceholder
(t *testing.T)
caddytest/integration/caddyfile_test.go:606
FunctionTestReplacer
(t *testing.T)
replacer_test.go:26
FunctionTestReplacerDelete
(t *testing.T)
replacer_test.go:313
FunctionTestReplacerMap
(t *testing.T)
replacer_test.go:347
FunctionTestReplacerNew
(t *testing.T)
replacer_test.go:374
FunctionTestReplacerNewWithoutFile
(t *testing.T)
replacer_test.go:460
FunctionTestReplacerReplaceKnown
(t *testing.T)
replacer_test.go:240
FunctionTestReplacerSet
(t *testing.T)
replacer_test.go:181
FunctionTestRequestOnlyMatcherDoesNotRetryResponses
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
FunctionTestResolveIpVersion
(t *testing.T)
modules/caddyhttp/reverseproxy/upstreams_test.go:5
FunctionTestRespond
(t *testing.T)
caddytest/integration/caddyfile_test.go:11
FunctionTestRespondWithJSON
(t *testing.T)
caddytest/integration/handler_test.go:34
FunctionTestResponseMatcher
(t *testing.T)
modules/caddyhttp/responsematchers_test.go:22
FunctionTestResponseRecorderReadFrom
(t *testing.T)
modules/caddyhttp/responsewriter_test.go:104
FunctionTestResponseRetryExhaustedPreservesStatusCode
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
FunctionTestResponseRetryHeader
TestResponseRetryHeader verifies that response header matching triggers retries via a CEL expression checking {rp.header.*}
modules/caddyhttp/reverseproxy/retries_test.go:335
FunctionTestResponseRetryHeaderCleanup
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
FunctionTestResponseRetryNoMatchNoRetry
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
FunctionTestResponseRetryStatusCode
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
FunctionTestResponseWriterWrapperReadFrom
(t *testing.T)
modules/caddyhttp/responsewriter_test.go:47
FunctionTestResponseWriterWrapperUnwrap
(t *testing.T)
modules/caddyhttp/responsewriter_test.go:96
FunctionTestRetryMatchAllowsExpressionMixedWithOtherMatchers
TestRetryMatchAllowsExpressionMixedWithOtherMatchers verifies that lb_retry_match accepts a block mixing expression with other matchers
modules/caddyhttp/reverseproxy/retries_test.go:681
FunctionTestReverseProxyHealthCheck
(t *testing.T)
caddytest/integration/reverseproxy_test.go:329
FunctionTestReverseProxyHealthCheckPortUsed
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
FunctionTestReverseProxyHealthCheckUnixSocket
(t *testing.T)
caddytest/integration/reverseproxy_test.go:452
FunctionTestReverseProxyHealthCheckUnixSocketWithoutPort
(t *testing.T)
caddytest/integration/reverseproxy_test.go:510
FunctionTestReverseProxyRetryMatchCombined
TestReverseProxyRetryMatchCombined verifies that a CEL expression combining request path matching with response status code matching works correctly -
caddytest/integration/reverseproxy_test.go:685
FunctionTestReverseProxyRetryMatchHeader
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
FunctionTestReverseProxyRetryMatchIsTransportError
TestReverseProxyRetryMatchIsTransportError verifies that the {rp.is_transport_error} == true CEL function correctly identifies transport errors and al
caddytest/integration/reverseproxy_test.go:743
FunctionTestReverseProxyRetryMatchStatusCode
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
FunctionTestReverseProxyWithPlaceholderDialAddress
(t *testing.T)
caddytest/integration/reverseproxy_test.go:141
FunctionTestReverseProxyWithPlaceholderTCPDialAddress
(t *testing.T)
caddytest/integration/reverseproxy_test.go:235
FunctionTestRewrite
(t *testing.T)
modules/caddyhttp/rewrite/rewrite_test.go:27
FunctionTestRoundRobinPolicy
(t *testing.T)
modules/caddyhttp/reverseproxy/selectionpolicies_test.go:36
FunctionTestSRVReverseProxy
(t *testing.T)
caddytest/integration/reverseproxy_test.go:16
FunctionTestSanitizeMethod
(t *testing.T)
internal/metrics/metrics_test.go:8
FunctionTestSanitizedPathJoin
(t *testing.T)
modules/caddyhttp/caddyhttp_test.go:10
FunctionTestServeHTTPDefaultEncodingPreference
(t *testing.T)
modules/caddyhttp/encode/encode_test.go:312
FunctionTestServerNameFromContext
(t *testing.T)
modules/caddyhttp/metrics_test.go:18
FunctionTestServerNameMatcher
(t *testing.T)
modules/caddytls/matchers_test.go:26
FunctionTestServerNameREMatcher
(t *testing.T)
modules/caddytls/matchers_test.go:112
FunctionTestServer_DetermineTrustedProxy_MatchLeftMostValidIp
(t *testing.T)
modules/caddyhttp/server_test.go:400
FunctionTestServer_DetermineTrustedProxy_MatchRightMostUntrusted
(t *testing.T)
modules/caddyhttp/server_test.go:420
FunctionTestServer_DetermineTrustedProxy_MatchRightMostUntrustedFirst
(t *testing.T)
modules/caddyhttp/server_test.go:558
FunctionTestServer_DetermineTrustedProxy_MatchRightMostUntrustedSkippingEmpty
(t *testing.T)
modules/caddyhttp/server_test.go:441
FunctionTestServer_DetermineTrustedProxy_MatchRightMostUntrustedSkippingTrusted
(t *testing.T)
modules/caddyhttp/server_test.go:463
FunctionTestServer_DetermineTrustedProxy_MultipleTrustedClientHeaders
(t *testing.T)
modules/caddyhttp/server_test.go:378
FunctionTestServer_DetermineTrustedProxy_MultipleTrustedPrefixes
(t *testing.T)
modules/caddyhttp/server_test.go:357
FunctionTestServer_DetermineTrustedProxy_NoConfig
(t *testing.T)
modules/caddyhttp/server_test.go:248
FunctionTestServer_DetermineTrustedProxy_NoConfigIpv6
(t *testing.T)
modules/caddyhttp/server_test.go:260
FunctionTestServer_DetermineTrustedProxy_NoConfigIpv6Zones
(t *testing.T)
modules/caddyhttp/server_test.go:272
FunctionTestServer_DetermineTrustedProxy_TrustedLoopback
(t *testing.T)
modules/caddyhttp/server_test.go:284
FunctionTestServer_DetermineTrustedProxy_UnixSocket
(t *testing.T)
modules/caddyhttp/server_test.go:304
FunctionTestServer_DetermineTrustedProxy_UnixSocketStrict
(t *testing.T)
modules/caddyhttp/server_test.go:320
FunctionTestServer_DetermineTrustedProxy_UntrustedPrefix
(t *testing.T)
modules/caddyhttp/server_test.go:337
FunctionTestServer_LogRequest
(t *testing.T)
modules/caddyhttp/server_test.go:51
FunctionTestServer_LogRequest_WithTrace
(t *testing.T)
modules/caddyhttp/server_test.go:76
FunctionTestServer_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
FunctionTestServer_TrustedRealClientIP_IncludesPort
(t *testing.T)
modules/caddyhttp/server_test.go:216
← previousnext →2,101–2,200 of 2,647, ranked by callers