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

Function TestProxyProtocolV2WithH1

caddytest/integration/proxyprotocol_test.go:388–390  ·  view source on GitHub ↗

TestProxyProtocolV2WithH1 verifies that PROXY protocol v2 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

386// TestProxyProtocolV2WithH1 verifies that PROXY protocol v2 headers are sent
387// correctly when the transport uses HTTP/1.1 to the upstream.
388func TestProxyProtocolV2WithH1(t *testing.T) {
389 testProxyProtocolMatrix(t, "v2", []string{"1.1"}, 1)
390}
391
392// TestProxyProtocolV1WithH2C verifies that PROXY protocol v1 headers are sent
393// correctly when the transport uses h2c (HTTP/2 cleartext) to the upstream.

Callers

nothing calls this directly

Calls 1

testProxyProtocolMatrixFunction · 0.85

Tested by

no test coverage detected