Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for DefaultServeMux (0.19 sec)

  1. src/net/http/fcgi/child.go

    // If l is nil, Serve accepts connections from os.Stdin.
    // If handler is nil, [http.DefaultServeMux] is used.
    func Serve(l net.Listener, handler http.Handler) error {
    	if l == nil {
    		var err error
    		l, err = net.FileListener(os.Stdin)
    		if err != nil {
    			return err
    		}
    		defer l.Close()
    	}
    	if handler == nil {
    		handler = http.DefaultServeMux
    	}
    	for {
    		rw, err := l.Accept()
    		if err != nil {
    			return err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. src/net/http/cgi/host.go

    	// should handle internal redirects when the CGI process
    	// returns a Location header value starting with a "/", as
    	// specified in RFC 3875 ยง 6.3.2. This will likely be
    	// http.DefaultServeMux.
    	//
    	// If nil, a CGI response with a local URI path is instead sent
    	// back to the client and not redirected internally.
    	PathLocationHandler http.Handler
    }
    
    func (h *Handler) stderr() io.Writer {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. src/net/http/fcgi/fcgi_test.go

    		1, 4, 0, 1, 0, 10, 0, 0, 50, 50, 3, 4, 5, 6, 7, 8, 9, 10,
    		// end of params
    		1, 4, 0, 1, 0, 0, 0, 0,
    	}
    	rw := rwNopCloser{bytes.NewReader(input), io.Discard}
    	c := newChild(rw, http.DefaultServeMux)
    	c.serve()
    }
    
    // a series of FastCGI records that start and end a request
    var streamFullRequestStdin = bytes.Join([][]byte{
    	// set up request
    	makeRecord(typeBeginRequest, 1,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 18:51:39 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/internal/driver/webui.go

    				http.Error(w, "permission denied", http.StatusForbidden)
    				return
    			}
    		}
    		h := args.Handlers[req.URL.Path]
    		if h == nil {
    			// Fall back to default behavior
    			h = http.DefaultServeMux
    		}
    		h.ServeHTTP(w, req)
    	})
    
    	// We serve the ui at /ui/ and redirect there from the root. This is done
    	// to surface any problems with serving the ui at a non-root early. See:
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 14K bytes
    - Viewed (0)
  5. src/net/http/pprof/pprof.go

    //
    // By default, all the profiles listed in [runtime/pprof.Profile] are
    // available (via [Handler]), in addition to the [Cmdline], [Profile], [Symbol],
    // and [Trace] profiles defined in this package.
    // If you are not using DefaultServeMux, you will have to register handlers
    // with the mux you are using.
    //
    // # Parameters
    //
    // Parameters can be passed via GET query params:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 17:34:05 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top