Lines Matching refs:http

10 	"net/http"
33 if got, want := res.status, http.StatusOK; got != want {
43 handler: func(w http.ResponseWriter, r *http.Request) {
45 if got, want := xfp, "foo, http"; got != want {
62 if got, want := res.status, http.StatusOK; got != want {
75 handler: func(w http.ResponseWriter, r *http.Request) {
94 if got, want := res.status, http.StatusOK; got != want {
103 handler: func(w http.ResponseWriter, r *http.Request) {
105 if got, want := xfp, "http"; got != want {
122 if got, want := res.status, http.StatusOK; got != want {
132 handler: func(w http.ResponseWriter, r *http.Request) {
150 if got, want := res.status, http.StatusOK; got != want {
160 handler: func(w http.ResponseWriter, r *http.Request) {
177 if got, want := res.status, http.StatusOK; got != want {
187 handler: func(w http.ResponseWriter, r *http.Request) {
207 if got, want := res.status, http.StatusOK; got != want {
217 handler: func(w http.ResponseWriter, r *http.Request) {
235 if got, want := res.status, http.StatusOK; got != want {
248 handler: func(w http.ResponseWriter, r *http.Request) {
268 if got, want := res.status, http.StatusOK; got != want {
278 handler: func(w http.ResponseWriter, r *http.Request) {
279 pattern := fmt.Sprintf(`by=_[^;]+;for=_[^;]+;host="127\.0\.0\.1:%v";proto=http`, serverPort)
297 if got, want := res.status, http.StatusOK; got != want {
307 handler: func(w http.ResponseWriter, r *http.Request) {
324 if got, want := res.status, http.StatusOK; got != want {
338 handler: func(w http.ResponseWriter, r *http.Request) {
339 want := fmt.Sprintf(`by=_alpha;for=127.0.0.1;host="127.0.0.1:%v";proto=http`, serverPort)
354 if got, want := res.status, http.StatusOK; got != want {
365 handler: func(w http.ResponseWriter, r *http.Request) {
366 if got, want := r.Header.Get("Forwarded"), `host=foo, proto=http`; got != want {
383 if got, want := res.status, http.StatusOK; got != want {
397 handler: func(w http.ResponseWriter, r *http.Request) {
398 if got, want := r.Header.Get("Forwarded"), `proto=http`; got != want {
415 if got, want := res.status, http.StatusOK; got != want {
425 handler: func(w http.ResponseWriter, r *http.Request) {
443 if got, want := res.status, http.StatusOK; got != want {
457 handler: func(w http.ResponseWriter, r *http.Request) {
474 if got, want := res.status, http.StatusOK; got != want {
483 handler: func(w http.ResponseWriter, r *http.Request) {
507 handler: func(w http.ResponseWriter, r *http.Request) {
536 handler: func(w http.ResponseWriter, r *http.Request) {
564 handler: func(w http.ResponseWriter, r *http.Request) {
577 if got, want := res.status, http.StatusOK; got != want {
589 handler: func(w http.ResponseWriter, r *http.Request) {
602 if got, want := res.status, http.StatusOK; got != want {
642 handler: func(w http.ResponseWriter, r *http.Request) {
670 handler: func(w http.ResponseWriter, r *http.Request) {
674 w.Header().Add("Location", "http://127.0.0.1:8443/p/q?a=b#fragment")
687 want := fmt.Sprintf("http://127.0.0.1:%v/p/q?a=b#fragment", serverPort)
696 handler: func(w http.ResponseWriter, r *http.Request) {
722 if got, want := res.status, http.StatusOK; got != want {
731 handler: func(w http.ResponseWriter, r *http.Request) {
757 handler: func(w http.ResponseWriter, r *http.Request) {
803 handler: func(w http.ResponseWriter, r *http.Request) {
817 if got, want := res.status, http.StatusNotImplemented; got != want {
826 handler: func(w http.ResponseWriter, r *http.Request) {
849 handler: func(w http.ResponseWriter, r *http.Request) {
858 scheme: "http*",
872 handler: func(w http.ResponseWriter, r *http.Request) {
892 if got, want := res.status, http.StatusOK; got != want {
912 if got, want := res.status, http.StatusOK; got != want {
921 handler: func(w http.ResponseWriter, r *http.Request) {
966 // with http value since :scheme is http, even if the frontend
970 handler: func(w http.ResponseWriter, r *http.Request) {
971 if got, want := r.Header.Get("x-forwarded-proto"), "http"; got != want {
986 if got, want := res.status, http.StatusOK; got != want {
995 handler: func(w http.ResponseWriter, r *http.Request) {
1011 if got, want := res.status, http.StatusOK; got != want {
1018 if got, want := mainCSS.status, http.StatusOK; got != want {
1022 if got, want := themeCSS.status, http.StatusOK; got != want {
1031 handler: func(w http.ResponseWriter, r *http.Request) {
1060 if got, want := res.status, http.StatusOK; got != want {
1070 handler: func(w http.ResponseWriter, r *http.Request) {
1083 if got, want := res.status, http.StatusRequestHeaderFieldsTooLarge; got != want {
1093 handler: func(w http.ResponseWriter, r *http.Request) {
1108 if got, want := res.status, http.StatusRequestHeaderFieldsTooLarge; got != want {
1118 handler: func(w http.ResponseWriter, r *http.Request) {
1134 if got, want := res.status, http.StatusOK; got != want {
1144 handler: func(w http.ResponseWriter, r *http.Request) {
1158 if got, want := res.status, http.StatusNotFound; got != want {
1195 if got, want := res.status, http.StatusOK; got != want {
1220 if got, want := res.status, http.StatusNotFound; got != want {
1259 if got, want := res.status, http.StatusSwitchingProtocols; got != want {
1269 if got, want := res.status, http.StatusOK; got != want {
1287 handler: func(w http.ResponseWriter, r *http.Request) {
1308 if got, want := res.status, http.StatusOK; got != want {
1324 handler: func(w http.ResponseWriter, r *http.Request) {
1348 if got, want := res.status, http.StatusOK; got != want {
1364 handler: func(w http.ResponseWriter, r *http.Request) {
1388 if got, want := res.status, http.StatusOK; got != want {
1404 handler: func(w http.ResponseWriter, r *http.Request) {
1426 if got, want := res.status, http.StatusOK; got != want {
1442 handler: func(w http.ResponseWriter, r *http.Request) {
1464 if got, want := res.status, http.StatusOK; got != want {
1479 handler: func(w http.ResponseWriter, r *http.Request) {
1503 if got, want := res.status, http.StatusOK; got != want {
1532 if got, want := res.status, http.StatusOK; got != want {
1884 handler: func(w http.ResponseWriter, r *http.Request) {
1924 if got, want := res.status, http.StatusOK; got != want {
1940 handler: func(w http.ResponseWriter, r *http.Request) {
1980 if got, want := res.status, http.StatusOK; got != want {
2012 handler: func(w http.ResponseWriter, r *http.Request) {
2034 if got, want := res.status, http.StatusOK; got != want {
2066 handler: func(w http.ResponseWriter, r *http.Request) {
2088 if got, want := res.status, http.StatusOK; got != want {
2103 handler: func(w http.ResponseWriter, r *http.Request) {
2143 if got, want := res.status, http.StatusOK; got != want {
2196 handler: func(w http.ResponseWriter, r *http.Request) {
2236 if got, want := res.status, http.StatusOK; got != want {
2251 handler: func(w http.ResponseWriter, r *http.Request) {
2283 if got, want := res.status, http.StatusOK; got != want {
2304 if got, want := res.status, http.StatusOK; got != want {
2325 if got, want := res.status, http.StatusOK; got != want {
2346 if got, want := res.status, http.StatusPermanentRedirect; got != want {
2374 if got, want := res.status, http.StatusPermanentRedirect; got != want {
2386 handler: func(w http.ResponseWriter, r *http.Request) {
2387 w.WriteHeader(http.StatusNoContent)
2400 if got, want := res.status, http.StatusNoContent; got != want {
2409 handler: func(w http.ResponseWriter, r *http.Request) {
2410 hj, ok := w.(http.Hijacker)
2412 http.Error(w, "Could not hijack the connection", http.StatusInternalServerError)
2417 http.Error(w, err.Error(), http.StatusInternalServerError)
2437 if got, want := res.status, http.StatusNoContent; got != want {
2450 handler: func(w http.ResponseWriter, r *http.Request) {
2451 hj, ok := w.(http.Hijacker)
2453 http.Error(w, "Could not hijack the connection", http.StatusInternalServerError)
2458 http.Error(w, err.Error(), http.StatusInternalServerError)
2478 if got, want := res.status, http.StatusBadGateway; got != want {
2487 handler: func(w http.ResponseWriter, r *http.Request) {
2488 hj, ok := w.(http.Hijacker)
2490 http.Error(w, "Could not hijack the connection", http.StatusInternalServerError)
2495 http.Error(w, err.Error(), http.StatusInternalServerError)
2515 if got, want := res.status, http.StatusBadGateway; got != want {
2521 // cleartext http.
2536 if got, want := res.status, http.StatusOK; got != want {
2565 if got, want := res.status, http.StatusOK; got != want {
2588 pair(":scheme", "http"),
2662 handler: func(w http.ResponseWriter, r *http.Request) {
2687 handler: func(w http.ResponseWriter, r *http.Request) {
2733 handler: func(w http.ResponseWriter, r *http.Request) {
2746 if got, want := res.status, http.StatusOK; got != want {
2759 handler: func(w http.ResponseWriter, r *http.Request) {
2772 if got, want := res.status, http.StatusOK; got != want {
2781 // with http value since :scheme is http, even if the frontend
2786 handler: func(w http.ResponseWriter, r *http.Request) {
2787 if got, want := r.Header.Get("x-forwarded-proto"), "http"; got != want {
2802 if got, want := res.status, http.StatusOK; got != want {
2815 handler: func(w http.ResponseWriter, r *http.Request) {
2817 if got, want := xfp, "foo, http"; got != want {
2835 if got, want := res.status, http.StatusOK; got != want {
2849 handler: func(w http.ResponseWriter, r *http.Request) {
2869 if got, want := res.status, http.StatusOK; got != want {
2879 handler: func(w http.ResponseWriter, r *http.Request) {
2881 if got, want := xfp, "http"; got != want {
2899 if got, want := res.status, http.StatusOK; got != want {
2909 handler: func(w http.ResponseWriter, r *http.Request) {
2928 if got, want := res.status, http.StatusOK; got != want {
2938 handler: func(w http.ResponseWriter, r *http.Request) {
2956 if got, want := res.status, http.StatusOK; got != want {
2966 handler: func(w http.ResponseWriter, r *http.Request) {
2987 if got, want := res.status, http.StatusOK; got != want {
3000 handler: func(w http.ResponseWriter, r *http.Request) {
3019 if got, want := res.status, http.StatusOK; got != want {
3033 handler: func(w http.ResponseWriter, r *http.Request) {
3054 if got, want := res.status, http.StatusOK; got != want {
3068 handler: func(w http.ResponseWriter, r *http.Request) {
3087 if got, want := res.status, http.StatusOK; got != want {
3102 handler: func(w http.ResponseWriter, r *http.Request) {
3123 if got, want := res.status, http.StatusOK; got != want {
3139 handler: func(w http.ResponseWriter, r *http.Request) {
3160 if got, want := res.status, http.StatusOK; got != want {
3170 handler: func(w http.ResponseWriter, r *http.Request) {
3190 if got, want := res.status, http.StatusOK; got != want {
3203 handler: func(w http.ResponseWriter, r *http.Request) {
3217 if got, want := res.status, http.StatusNotFound; got != want {
3257 if got, want := res.status, http.StatusNotFound; got != want {
3294 if got, want := res.status, http.StatusOK; got != want {
3315 if got, want := res.status, http.StatusOK; got != want {
3325 handler: func(w http.ResponseWriter, r *http.Request) {
3326 w.WriteHeader(http.StatusNoContent)
3339 if got, want := res.status, http.StatusNoContent; got != want {
3349 handler: func(w http.ResponseWriter, r *http.Request) {
3369 if got, want := res.status, http.StatusOK; got != want {
3391 handler: func(w http.ResponseWriter, r *http.Request) {
3411 if got, want := res.status, http.StatusOK; got != want {
3433 handler: func(w http.ResponseWriter, r *http.Request) {
3453 if got, want := res.status, http.StatusMethodNotAllowed; got != want {
3474 handler: func(w http.ResponseWriter, r *http.Request) {
3490 if got, want := res.status, http.StatusOK; got != want {
3517 handler: func(w http.ResponseWriter, r *http.Request) {
3537 if got, want := res.status, http.StatusNotFound; got != want {
3558 handler: func(w http.ResponseWriter, r *http.Request) {
3573 if got, want := res.status, http.StatusOK; got != want {
3583 handler: func(w http.ResponseWriter, r *http.Request) {
3597 if got, want := res.status, http.StatusNotFound; got != want {
3606 handler: func(w http.ResponseWriter, r *http.Request) {
3607 hj, ok := w.(http.Hijacker)
3609 http.Error(w, "Could not hijack the connection", http.StatusInternalServerError)
3614 http.Error(w, err.Error(), http.StatusInternalServerError)
3643 args: []string{"--require-http-scheme"},
3644 handler: func(w http.ResponseWriter, r *http.Request) {
3659 if got, want := res.status, http.StatusBadRequest; got != want {
3664 // TestH2H1RequireHTTPSchemeHTTPWithEncryption verifies that http
3668 args: []string{"--require-http-scheme"},
3669 handler: func(w http.ResponseWriter, r *http.Request) {
3679 scheme: "http",
3685 if got, want := res.status, http.StatusBadRequest; got != want {
3695 args: []string{"--require-http-scheme"},
3696 handler: func(w http.ResponseWriter, r *http.Request) {
3711 if got, want := res.status, http.StatusBadRequest; got != want {
3720 args: []string{"--require-http-scheme"},
3721 handler: func(w http.ResponseWriter, r *http.Request) {
3737 if got, want := res.status, http.StatusBadRequest; got != want {