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

Function TestProxyProtocolV1WithH2C

caddytest/integration/proxyprotocol_test.go:394–396  ·  view source on GitHub ↗

TestProxyProtocolV1WithH2C verifies that PROXY protocol v1 headers are sent correctly when the transport uses h2c (HTTP/2 cleartext) to the upstream.

(t *testing.T)

Source from the content-addressed store, hash-verified

392// TestProxyProtocolV1WithH2C verifies that PROXY protocol v1 headers are sent
393// correctly when the transport uses h2c (HTTP/2 cleartext) to the upstream.
394func TestProxyProtocolV1WithH2C(t *testing.T) {
395 testProxyProtocolMatrix(t, "v1", []string{"h2c"}, 1)
396}
397
398// TestProxyProtocolV2WithH2C verifies that PROXY protocol v2 headers are sent
399// 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