Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for UseHandler (0.06 sec)

  1. internal/http/server.go

    // UseReadHeaderTimeout configure read header timeout
    func (srv *Server) UseReadHeaderTimeout(d time.Duration) *Server {
    	srv.ReadHeaderTimeout = d
    	return srv
    }
    
    // UseHandler configure final handler for this HTTP *Server
    func (srv *Server) UseHandler(h http.Handler) *Server {
    	srv.Handler = h
    	return srv
    }
    
    // UseTLSConfig pass configured TLSConfig for this HTTP *Server
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 18:42:47 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. internal/http/server_test.go

    		{[]string{nonLoopBackIP + ":9000"}, handler, getCert},
    		{[]string{"127.0.0.1:9000", nonLoopBackIP + ":9000"}, handler, getCert},
    	}
    
    	for i, testCase := range testCases {
    		server := NewServer(testCase.addrs).
    			UseHandler(testCase.handler)
    		if testCase.certFn != nil {
    			server = server.UseTLSConfig(&tls.Config{
    				PreferServerCipherSuites: true,
    				GetCertificate:           testCase.certFn,
    			})
    		}
    		if server == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 18:42:47 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. cmd/server-main.go

    		}
    		// Allow grid to start after registering all services.
    		close(globalGridStart)
    		close(globalLockGridStart)
    
    		httpServer := xhttp.NewServer(getServerListenAddrs()).
    			UseHandler(setCriticalErrorHandler(corsHandler(handler))).
    			UseTLSConfig(newTLSConfig(getCert)).
    			UseIdleTimeout(globalServerCtxt.IdleTimeout).
    			UseReadHeaderTimeout(globalServerCtxt.ReadHeaderTimeout).
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 35.2K bytes
    - Viewed (1)
Back to top