MCPcopy
hub / github.com/caddyserver/caddy / TestProxyProtocolV1WithH1

Function TestProxyProtocolV1WithH1

caddytest/integration/proxyprotocol_test.go:382–384  ·  view source on GitHub ↗

TestProxyProtocolV1WithH1 verifies that PROXY protocol v1 headers are sent correctly when the transport uses HTTP/1.1 to the upstream.

(t *testing.T)

Source from the content-addressed store, hash-verified

380// TestProxyProtocolV1WithH1 verifies that PROXY protocol v1 headers are sent
381// correctly when the transport uses HTTP/1.1 to the upstream.
382func TestProxyProtocolV1WithH1(t *testing.T) {
383 testProxyProtocolMatrix(t, "v1", []string{"1.1"}, 1)
384}
385
386// TestProxyProtocolV2WithH1 verifies that PROXY protocol v2 headers are sent
387// correctly when the transport uses HTTP/1.1 to the upstream.

Callers

nothing calls this directly

Calls 1

testProxyProtocolMatrixFunction · 0.85

Tested by

no test coverage detected