MCPcopy Create free account

hub / github.com/caddyserver/caddy / functions

Functions2,647 in github.com/caddyserver/caddy

FunctionTestDefaultSNIWithNamedHostAndExplicitIP
(t *testing.T)
caddytest/integration/sni_test.go:108
FunctionTestDefaultSNIWithPortMappingOnly
(t *testing.T)
caddytest/integration/sni_test.go:212
FunctionTestDefaultSNIWithoutHTTPS
(t *testing.T)
caddyconfig/httpcaddyfile/httptype_test.go:252
FunctionTestDialErrorBodyRetry
TestDialErrorBodyRetry verifies that a POST request whose body has NOT been pre-buffered via request_buffers can still be retried after a dial error.
modules/caddyhttp/reverseproxy/retries_test.go:140
FunctionTestDialWithPlaceholderUnix
(t *testing.T)
caddytest/integration/reverseproxy_test.go:59
FunctionTestDirMode_Default0700
(t *testing.T)
modules/logging/filewriter_test.go:537
FunctionTestDirMode_ExplicitOctal
(t *testing.T)
modules/logging/filewriter_test.go:510
FunctionTestDirMode_FromFile
(t *testing.T)
modules/logging/filewriter_test.go:461
FunctionTestDirMode_Inherit
(t *testing.T)
modules/logging/filewriter_test.go:430
FunctionTestDirMode_UmaskInteraction
(t *testing.T)
modules/logging/filewriter_test.go:563
FunctionTestDirMode_Windows_CreateSucceeds
(t *testing.T)
modules/logging/filewriter_test_windows.go:57
FunctionTestDirectiveImport
(t *testing.T)
caddyconfig/caddyfile/parse_test.go:470
FunctionTestDispenser_ArgErr_Err
(t *testing.T)
caddyconfig/caddyfile/dispenser_test.go:337
FunctionTestDispenser_Args
(t *testing.T)
caddyconfig/caddyfile/dispenser_test.go:171
FunctionTestDispenser_NextArg
(t *testing.T)
caddyconfig/caddyfile/dispenser_test.go:63
FunctionTestDispenser_NextBlock
(t *testing.T)
caddyconfig/caddyfile/dispenser_test.go:140
FunctionTestDispenser_NextLine
(t *testing.T)
caddyconfig/caddyfile/dispenser_test.go:110
FunctionTestDispenser_RemainingArgs
(t *testing.T)
caddyconfig/caddyfile/dispenser_test.go:239
FunctionTestDispenser_RemainingArgsAsTokens
(t *testing.T)
caddyconfig/caddyfile/dispenser_test.go:277
FunctionTestDispenser_Val_Next
(t *testing.T)
caddyconfig/caddyfile/dispenser_test.go:24
FunctionTestDuplicateHosts
(t *testing.T)
caddytest/integration/caddyfile_test.go:61
FunctionTestDynamicHostCleanupEvictsStaleEntries
TestDynamicHostCleanupEvictsStaleEntries verifies that the cleanup sweep removes entries whose lastSeen is older than dynamicHostIdleExpiry.
modules/caddyhttp/reverseproxy/dynamic_upstreams_test.go:253
FunctionTestDynamicHostCleanupRetainsFreshEntries
TestDynamicHostCleanupRetainsFreshEntries verifies that the cleanup sweep keeps entries whose lastSeen is within dynamicHostIdleExpiry.
modules/caddyhttp/reverseproxy/dynamic_upstreams_test.go:286
FunctionTestDynamicHostConcurrentFillHost
TestDynamicHostConcurrentFillHost verifies that concurrent calls to fillDynamicHost for the same address all get the same *Host pointer and don't race
modules/caddyhttp/reverseproxy/dynamic_upstreams_test.go:319
FunctionTestDynamicHostHealthyConsultsFails
TestDynamicHostHealthyConsultsFails verifies the end-to-end passive health check path: after enough failures are recorded against a dynamic upstream's
modules/caddyhttp/reverseproxy/dynamic_upstreams_test.go:224
FunctionTestDynamicUpstreamFailCountPersistedBetweenRequests
TestDynamicUpstreamFailCountPersistedBetweenRequests is the core regression test: it simulates two sequential (non-concurrent) requests to the same dy
modules/caddyhttp/reverseproxy/passive_health_test.go:292
FunctionTestDynamicUpstreamHealthyWithNoFailures
--- dynamic upstream passive health check --- TestDynamicUpstreamHealthyWithNoFailures verifies that a freshly provisioned dynamic upstream is healthy
modules/caddyhttp/reverseproxy/passive_health_test.go:254
FunctionTestDynamicUpstreamMaxRequestsFromUnhealthyRequestCount
TestDynamicUpstreamMaxRequestsFromUnhealthyRequestCount verifies that UnhealthyRequestCount is copied into MaxRequests so Full() works correctly.
modules/caddyhttp/reverseproxy/passive_health_test.go:361
FunctionTestDynamicUpstreamRecoveryAfterFailDuration
TestDynamicUpstreamRecoveryAfterFailDuration verifies that a dynamic upstream's fail count expires and it returns to healthy.
modules/caddyhttp/reverseproxy/passive_health_test.go:334
FunctionTestDynamicUpstreamUnhealthyAtMaxFails
TestDynamicUpstreamUnhealthyAtMaxFails verifies that a dynamic upstream is marked unhealthy once its fail count reaches MaxFails.
modules/caddyhttp/reverseproxy/passive_health_test.go:269
FunctionTestECHDNSPublisherPublishedSvcParams
(t *testing.T)
modules/caddytls/ech_dns_test.go:35
FunctionTestETags
(t *testing.T)
admin_test.go:188
FunctionTestEnvironmentReplacement
(t *testing.T)
caddyconfig/caddyfile/parse_test.go:636
FunctionTestEqualFold
(t *testing.T)
modules/caddyhttp/reverseproxy/ascii_test.go:28
FunctionTestEvent_CloudEvent_NilOrigin
(t *testing.T)
caddy_test.go:77
FunctionTestExpand
(t *testing.T)
listeners_test.go:537
FunctionTestFileCAPoolUnmarshalCaddyfile
(t *testing.T)
modules/caddytls/capools_test.go:106
FunctionTestFileCreationMode
(t *testing.T)
modules/logging/filewriter_test.go:30
FunctionTestFileCreationMode
Windows relies on ACLs instead of unix permissions model. Go allows to open files with a particular mode but it is limited to read or write. See https
modules/logging/filewriter_test_windows.go:30
FunctionTestFileHidden
(t *testing.T)
modules/caddyhttp/fileserver/staticfiles_test.go:31
FunctionTestFileListing
(t *testing.T)
modules/caddyhttp/templates/tplcontext_test.go:469
FunctionTestFileMatcher
(t *testing.T)
modules/caddyhttp/fileserver/matcher_test.go:41
FunctionTestFileMatcherNonWindows
(t *testing.T)
modules/caddyhttp/fileserver/matcher_test.go:128
FunctionTestFileModeConfig
(t *testing.T)
modules/logging/filewriter_test.go:218
FunctionTestFileModeJSON
(t *testing.T)
modules/logging/filewriter_test.go:298
FunctionTestFileModeModification
(t *testing.T)
modules/logging/filewriter_test.go:391
FunctionTestFileModeToJSON
(t *testing.T)
modules/logging/filewriter_test.go:352
FunctionTestFileRotationPreserveMode
(t *testing.T)
modules/logging/filewriter_test.go:102
FunctionTestFileRotationPreserveModeWithUmask
(t *testing.T)
modules/logging/filewriter_test.go:177
FunctionTestFillDynamicHostCreatesEntry
TestFillDynamicHostCreatesEntry verifies that calling fillDynamicHost on a new address inserts an entry into dynamicHosts and assigns a non-nil Host.
modules/caddyhttp/reverseproxy/dynamic_upstreams_test.go:36
FunctionTestFillDynamicHostIndependentAddresses
TestFillDynamicHostIndependentAddresses verifies that different addresses get independent Host entries.
modules/caddyhttp/reverseproxy/dynamic_upstreams_test.go:106
FunctionTestFillDynamicHostPreservesFailCount
TestFillDynamicHostPreservesFailCount verifies that fail counts on a dynamic host survive across multiple fillDynamicHost calls (simulating sequential
modules/caddyhttp/reverseproxy/dynamic_upstreams_test.go:123
FunctionTestFillDynamicHostReusesSameHost
TestFillDynamicHostReusesSameHost verifies that two calls for the same address return the exact same *Host pointer so that state (e.g. fail counts) is
modules/caddyhttp/reverseproxy/dynamic_upstreams_test.go:63
FunctionTestFillDynamicHostUpdatesLastSeen
TestFillDynamicHostUpdatesLastSeen verifies that a second call for the same address advances the lastSeen timestamp.
modules/caddyhttp/reverseproxy/dynamic_upstreams_test.go:79
FunctionTestFirstPolicy
(t *testing.T)
modules/caddyhttp/reverseproxy/selectionpolicies_test.go:489
FunctionTestFirstSplit
(t *testing.T)
modules/caddyhttp/fileserver/matcher_test.go:404
FunctionTestFormatter
(t *testing.T)
caddyconfig/caddyfile/formatter_test.go:22
FunctionTestForwardAuthCopyHeadersAuthResponseWins
TestForwardAuthCopyHeadersAuthResponseWins verifies that when the auth service does include a copy_headers header in its response, that value is forwa
caddytest/integration/forwardauth_test.go:137
FunctionTestForwardAuthCopyHeadersStripsClientHeaders
TestForwardAuthCopyHeadersStripsClientHeaders is a regression test for the header injection vulnerability in forward_auth copy_headers. When the auth
caddytest/integration/forwardauth_test.go:39
FunctionTestForwardAuthCopyHeadersUnderscoreAlias
TestForwardAuthCopyHeadersUnderscoreAlias guards GHSA-f59h-q822-g45g: a client-supplied `Remote_user` alias of the copy_headers target `Remote-User` m
caddytest/integration/forwardauth_test.go:216
FunctionTestGetModules
(t *testing.T)
modules_test.go:22
FunctionTestGlobalCertIssuerAppliesToImplicitACMEIssuer
(t *testing.T)
caddyconfig/httpcaddyfile/options_test.go:172
FunctionTestGlobalLogOptionSyntax
(t *testing.T)
caddyconfig/httpcaddyfile/options_test.go:14
FunctionTestGlobalOptions
(t *testing.T)
caddyconfig/httpcaddyfile/httptype_test.go:146
FunctionTestGlobalOptionsAfterImportedSnippetsGivesHelpfulError
(t *testing.T)
caddyconfig/caddyfile/parse_test.go:933
FunctionTestGlobalResolversOption
(t *testing.T)
caddyconfig/httpcaddyfile/options_test.go:70
FunctionTestH2ListenerWithTLS
(t *testing.T)
caddytest/integration/h2listener_test.go:45
FunctionTestH2ListenerWithoutTLS
(t *testing.T)
caddytest/integration/h2listener_test.go:103
FunctionTestH2ToH1ChunkedResponse
(see https://github.com/caddyserver/caddy/issues/3606 for use case)
caddytest/integration/stream_test.go:207
FunctionTestH2ToH2CStream
(see https://github.com/caddyserver/caddy/issues/3556 for use case)
caddytest/integration/stream_test.go:23
FunctionTestHTTPCertPoolUnmarshalCaddyfile
(t *testing.T)
modules/caddytls/capools_test.go:658
FunctionTestHTTPInclude
(t *testing.T)
modules/caddyhttp/templates/tplcontext_test.go:45
FunctionTestHTTPRedirectWrapperWithLargeUpload
(t *testing.T)
caddytest/integration/listener_test.go:53
FunctionTestHTTPSRRALPNsDefaultProtocols
(t *testing.T)
modules/caddyhttp/autohttps_test.go:8
FunctionTestHTTPSRRALPNsIgnoresH2COnly
(t *testing.T)
modules/caddyhttp/autohttps_test.go:38
FunctionTestHTTPSRRALPNsListenProtocolOverrides
(t *testing.T)
modules/caddyhttp/autohttps_test.go:19
FunctionTestHTTPTransportUnmarshalCaddyFileWithCaPools
(t *testing.T)
modules/caddyhttp/reverseproxy/httptransport_test.go:17
FunctionTestHTTPTransport_DialContext_DialInfoOverride
TestHTTPTransport_DialContext_DialInfoOverride is a regression test for issue #6447: a `tcp4/`-prefixed upstream silently fell back to plain `tcp` bec
modules/caddyhttp/reverseproxy/httptransport_test.go:206
FunctionTestHTTPTransport_DialTLSContext_ProxyProtocol
TestHTTPTransport_DialTLSContext_ProxyProtocol verifies that when TLS and ProxyProtocol are both enabled, DialTLSContext is set. This is critical beca
modules/caddyhttp/reverseproxy/httptransport_test.go:130
FunctionTestHTTPTransport_RequestHeaderOps_TLS
(t *testing.T)
modules/caddyhttp/reverseproxy/httptransport_test.go:103
FunctionTestHTTPVarReplacement
(t *testing.T)
modules/caddyhttp/replacer_test.go:30
FunctionTestHandleErrorRange
(t *testing.T)
caddytest/integration/caddyfile_test.go:716
FunctionTestHandleErrorRangeAndCodes
(t *testing.T)
caddytest/integration/caddyfile_test.go:760
FunctionTestHandleErrorSimpleCodes
(t *testing.T)
caddytest/integration/caddyfile_test.go:696
FunctionTestHandleErrorSort
(t *testing.T)
caddytest/integration/caddyfile_test.go:736
FunctionTestHandleErrorSubHandlers
(t *testing.T)
caddytest/integration/caddyfile_test.go:785
FunctionTestHandler
(t *testing.T)
modules/caddyhttp/map/map_test.go:14
FunctionTestHandler
(t *testing.T)
modules/caddyhttp/headers/headers_test.go:29
FunctionTestHandlerCopyResponse
(t *testing.T)
modules/caddyhttp/reverseproxy/streaming_test.go:14
FunctionTestHandler_warnIfPolicyAllowsAll
(t *testing.T)
modules/caddypki/acmeserver/acmeserver_test.go:11
FunctionTestHashFilterMultiValue
(t *testing.T)
modules/logging/filters_test.go:229
FunctionTestHashFilterSingleValue
(t *testing.T)
modules/logging/filters_test.go:220
FunctionTestHeaderMatcher
(t *testing.T)
modules/caddyhttp/matchers_test.go:642
FunctionTestHeaderNameReplacer
TestHeaderNameReplacer asserts the CGI header-to-env normalization rule: hyphens are mapped to underscores while every other character (including spac
modules/caddyhttp/reverseproxy/fastcgi/fastcgi_test.go:313
FunctionTestHeaderProvisionSkipsPlaceholders
(t *testing.T)
modules/caddyhttp/headers/headers_test.go:296
FunctionTestHeaderREMatcher
(t *testing.T)
modules/caddyhttp/matchers_test.go:900
FunctionTestHostMatcher
(t *testing.T)
modules/caddyhttp/matchers_test.go:30
FunctionTestHostsFromKeys
(t *testing.T)
caddyconfig/httpcaddyfile/directives_test.go:9
FunctionTestHttpOnlyOnDomainWithSNI
(t *testing.T)
caddytest/integration/sni_test.go:288
FunctionTestHttpRequestLocalPortPlaceholder
Tests the `http.request.local.port` placeholder. We don't test the very similar `http.request.local.host` placeholder, because depending on the host t
caddytest/integration/caddyfile_test.go:525
← previousnext →1,901–2,000 of 2,647, ranked by callers