Lines Matching full:responsewriter
165 handler := func(res ResponseWriter, req *Request) {
200 func (s stringHandler) ServeHTTP(w ResponseWriter, r *Request) {
291 return func(w ResponseWriter, r *Request) {
299 func checkQueryStringHandler(w ResponseWriter, r *Request) {
455 ts := httptest.NewUnstartedServer(HandlerFunc(func(res ResponseWriter, req *Request) {
535 ts := httptest.NewUnstartedServer(HandlerFunc(func(w ResponseWriter, req *Request) {
592 handler := HandlerFunc(func(rw ResponseWriter, req *Request) {
711 testTCPConnectionCloses(t, "GET / HTTP/1.0\r\n\r\n", HandlerFunc(func(w ResponseWriter, r *Request) {
718 testTCPConnectionCloses(t, "GET / HTTP/1.1\r\nConnection: close\r\n\r\n", HandlerFunc(func(w ResponseWriter, r *Request) {
726 testTCPConnectionCloses(t, "GET / HTTP/1.1\r\n\r\n", HandlerFunc(func(w ResponseWriter, r *Request) {
732 testTCPConnectionCloses(t, "GET / HTTP/1.0\r\nConnection: keep-alive\r\n\r\n", HandlerFunc(func(w ResponseWriter, r *Request) {
739 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
763 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
791 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
820 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
848 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
851 t.Errorf("ResponseWriter.Write: %v", err)
857 t.Errorf("Copy(ResponseWriter, ...): %v", err)
888 ts := httptest.NewUnstartedServer(HandlerFunc(func(w ResponseWriter, r *Request) {}))
918 ts := httptest.NewTLSServer(HandlerFunc(func(w ResponseWriter, r *Request) {
1021 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
1126 go Serve(ls, HandlerFunc(func(rw ResponseWriter, req *Request) {
1158 go Serve(ls, HandlerFunc(func(rw ResponseWriter, req *Request) {
1312 go Serve(ls, HandlerFunc(func(rw ResponseWriter, req *Request) {
1362 go Serve(ls, HandlerFunc(func(_ ResponseWriter, req *Request) {
1396 go Serve(ln, HandlerFunc(func(_ ResponseWriter, req *Request) {
1516 Handler: HandlerFunc(func(_ ResponseWriter, req *Request) {
1538 sayHi := HandlerFunc(func(w ResponseWriter, r *Request) {
1590 delayHi := HandlerFunc(func(w ResponseWriter, r *Request) {
1631 delay204 := HandlerFunc(func(w ResponseWriter, r *Request) {
1704 ts := httptest.NewServer(HandlerFunc(func(rw ResponseWriter, r *Request) {
1776 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
1824 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
1841 h := HandlerFunc(func(w ResponseWriter, r *Request) {
1868 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
1913 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
1952 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {}))
1988 go Serve(ls, HandlerFunc(func(rw ResponseWriter, req *Request) {
2007 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
2050 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
2070 ts := httptest.NewServer(HandlerFunc(func(rw ResponseWriter, req *Request) {}))
2101 ts := httptest.NewServer(HandlerFunc(func(rw ResponseWriter, req *Request) {
2145 handler := HandlerFunc(func(rw ResponseWriter, r *Request) {
2159 mux.HandleFunc("/", func(w ResponseWriter, r *Request) {
2220 handler func(ResponseWriter, *Request)
2225 handler: func(rw ResponseWriter, r *Request) {
2240 handler: func(rw ResponseWriter, r *Request) {
2261 handler: func(rw ResponseWriter, r *Request) {
2274 handler: func(rw ResponseWriter, r *Request) {
2291 handler: func(rw ResponseWriter, r *Request) {
2312 handler: func(rw ResponseWriter, r *Request) {
2325 handler: func(rw ResponseWriter, r *Request) {
2338 handler: func(rw ResponseWriter, r *Request) {
2352 handler: func(rw ResponseWriter, r *Request) {
2364 handler: func(rw ResponseWriter, r *Request) {
2433 err := Serve(ln, HandlerFunc(HandlerFunc(func(ResponseWriter, *Request) {})))
2448 handler := HandlerFunc(func(rw ResponseWriter, r *Request) {
2479 handler := HandlerFunc(func(rw ResponseWriter, r *Request) {
2506 mux.Handle("/", HandlerFunc(func(resp ResponseWriter, req *Request) {}))
2559 ts := httptest.NewServer(HandlerFunc(func(rw ResponseWriter, req *Request) {
2602 ht := newHandlerTest(HandlerFunc(func(w ResponseWriter, r *Request) {
2633 ht := newHandlerTest(HandlerFunc(func(w ResponseWriter, r *Request) {
2659 backend := httptest.NewServer(HandlerFunc(func(rw ResponseWriter, req *Request) {
2666 proxy := httptest.NewServer(HandlerFunc(func(rw ResponseWriter, req *Request) {
2718 server := httptest.NewServer(HandlerFunc(func(rw ResponseWriter, req *Request) {
2757 // test that ResponseWriter implements io.stringWriter.
2760 ht := newHandlerTest(HandlerFunc(func(w ResponseWriter, r *Request) {
2771 t.Error("ResponseWriter did not implement io.stringWriter")
2793 handler := map[string]func(w ResponseWriter, r *Request){
2794 "/": func(w ResponseWriter, r *Request) {
2797 "/close": func(w ResponseWriter, r *Request) {
2801 "/hijack": func(w ResponseWriter, r *Request) {
2806 "/hijack-panic": func(w ResponseWriter, r *Request) {
2813 ts := httptest.NewUnstartedServer(HandlerFunc(func(w ResponseWriter, r *Request) {
2947 ts := httptest.NewUnstartedServer(HandlerFunc(func(w ResponseWriter, r *Request) {}))
2965 ts := httptest.NewServer(HandlerFunc(func(rw ResponseWriter, req *Request) {
3002 Handler: HandlerFunc(func(w ResponseWriter, r *Request) {}), // irrelevant
3047 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
3087 ts := httptest.NewUnstartedServer(HandlerFunc(func(w ResponseWriter, r *Request) {
3139 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
3186 go Serve(ln, HandlerFunc(func(rw ResponseWriter, r *Request) {
3223 go Serve(ln, HandlerFunc(func(w ResponseWriter, r *Request) {
3251 go Serve(ls, HandlerFunc(func(rw ResponseWriter, req *Request) {
3266 ts := httptest.NewServer(HandlerFunc(func(rw ResponseWriter, r *Request) {
3309 ts := httptest.NewUnstartedServer(HandlerFunc(func(rw ResponseWriter, r *Request) {
3385 ts := httptest.NewServer(HandlerFunc(func(rw ResponseWriter, r *Request) {
3427 HandleFunc("/", func(w ResponseWriter, r *Request) {
3509 handler := HandlerFunc(func(rw ResponseWriter, r *Request) {
3563 handler := HandlerFunc(func(rw ResponseWriter, r *Request) {
3592 handler := HandlerFunc(func(rw ResponseWriter, r *Request) {
3611 benchmarkHandler(b, HandlerFunc(func(w ResponseWriter, r *Request) {
3620 benchmarkHandler(b, HandlerFunc(func(w ResponseWriter, r *Request) {
3628 benchmarkHandler(b, HandlerFunc(func(w ResponseWriter, r *Request) {
3636 benchmarkHandler(b, HandlerFunc(func(w ResponseWriter, r *Request) {
3652 handler := HandlerFunc(func(rw ResponseWriter, r *Request) {
3669 h := HandlerFunc(func(w ResponseWriter, r *Request) {