Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewServerManual (0.16 sec)

  1. src/net/http/httptest/server_test.go

    var newServers = map[string]newServerFunc{
    	"NewServer":    NewServer,
    	"NewTLSServer": NewTLSServer,
    
    	// The manual variants of newServer create a Server manually by only filling
    	// in the exported fields of Server.
    	"NewServerManual": func(h http.Handler) *Server {
    		ts := &Server{Listener: newLocalListener(), Config: &http.Server{Handler: h}}
    		ts.Start()
    		return ts
    	},
    	"NewTLSServerManual": func(h http.Handler) *Server {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 16:57:12 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top