Lines Matching refs:proto
39 // x-forwarded-proto header field.
42 args: []string{"--no-strip-incoming-x-forwarded-proto"},
56 pair("x-forwarded-proto", "foo"),
68 // existing x-forwarded-proto header field.
72 "--no-add-x-forwarded-proto",
73 "--no-strip-incoming-x-forwarded-proto",
88 pair("x-forwarded-proto", "foo"),
100 // x-forwarded-proto header field.
116 pair("x-forwarded-proto", "foo"),
128 // x-forwarded-proto header field, and does not add another.
131 args: []string{"--no-add-x-forwarded-proto"},
144 pair("x-forwarded-proto", "foo"),
277 args: []string{"--add-forwarded=by,for,host,proto"},
279 pattern := fmt.Sprintf(`by=_[^;]+;for=_[^;]+;host="127\.0\.0\.1:%v";proto=http`, serverPort)
334 "--add-forwarded=by,for,host,proto",
339 want := fmt.Sprintf(`by=_alpha;for=127.0.0.1;host="127.0.0.1:%v";proto=http`, serverPort)
364 args: []string{"--add-forwarded=proto"},
366 if got, want := r.Header.Get("Forwarded"), `host=foo, proto=http`; got != want {
395 "--add-forwarded=proto",
398 if got, want := r.Header.Get("Forwarded"), `proto=http`; got != want {
965 // TestH2H1TLSXfp tests nghttpx sends x-forwarded-proto header field
971 if got, want := r.Header.Get("x-forwarded-proto"), "http"; got != want {
972 t.Errorf("x-forwarded-proto: want %v; got %v", want, got)
2780 // TestH2H2TLSXfp tests nghttpx sends x-forwarded-proto header field
2787 if got, want := r.Header.Get("x-forwarded-proto"), "http"; got != want {
2788 t.Errorf("x-forwarded-proto: want %v; got %v", want, got)
2808 // x-forwarded-proto header field.
2813 "--no-strip-incoming-x-forwarded-proto",
2829 pair("x-forwarded-proto", "foo"),
2841 // existing x-forwarded-proto header field.
2846 "--no-add-x-forwarded-proto",
2847 "--no-strip-incoming-x-forwarded-proto",
2863 pair("x-forwarded-proto", "foo"),
2875 // x-forwarded-proto header field.
2893 pair("x-forwarded-proto", "foo"),
2905 // x-forwarded-proto header field, and does not add another.
2908 args: []string{"--http2-bridge", "--no-add-x-forwarded-proto"},
2922 pair("x-forwarded-proto", "foo"),
3065 "--add-forwarded=by,for,host,proto",
3069 pattern := fmt.Sprintf(`by=_alpha;for=_[^;]+;host="127\.0\.0\.1:%v";proto=https`, serverPort)
3099 "--add-forwarded=by,host,proto",
3103 want := fmt.Sprintf(`host=foo, by=_alpha;host="127.0.0.1:%v";proto=https`, serverPort)
3136 "--add-forwarded=by,host,proto",
3140 want := fmt.Sprintf(`by=_alpha;host="127.0.0.1:%v";proto=https`, serverPort)