Lines Matching refs:NewServer
236 ts := httptest.NewServer(mux)
609 ts := httptest.NewServer(handler)
668 s := httptest.NewServer(h)
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) {
1021 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
1544 ts := httptest.NewServer(NewTestTimeoutHandler(sayHi, timeout))
1601 ts := httptest.NewServer(TimeoutHandler(delayHi, 20*time.Millisecond, ""))
1635 ts := httptest.NewServer(TimeoutHandler(delay204, time.Nanosecond, ""))
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) {
1844 ts := httptest.NewServer(StripPrefix("/foo", h))
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) {}))
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) {
2162 ts := httptest.NewServer(mux)
2507 ts := httptest.NewServer(mux)
2559 ts := httptest.NewServer(HandlerFunc(func(rw ResponseWriter, req *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) {
2965 ts := httptest.NewServer(HandlerFunc(func(rw ResponseWriter, req *Request) {
3047 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
3139 ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
3266 ts := httptest.NewServer(HandlerFunc(func(rw ResponseWriter, r *Request) {
3385 ts := httptest.NewServer(HandlerFunc(func(rw ResponseWriter, r *Request) {