Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for UseReadHeaderTimeout (0.08 sec)

  1. internal/http/server.go

    }
    
    // UseIdleTimeout configure idle connection timeout
    func (srv *Server) UseIdleTimeout(d time.Duration) *Server {
    	srv.IdleTimeout = d
    	return srv
    }
    
    // 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
    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. cmd/server-main.go

    		httpServer := xhttp.NewServer(getServerListenAddrs()).
    			UseHandler(setCriticalErrorHandler(corsHandler(handler))).
    			UseTLSConfig(newTLSConfig(getCert)).
    			UseIdleTimeout(globalServerCtxt.IdleTimeout).
    			UseReadHeaderTimeout(globalServerCtxt.ReadHeaderTimeout).
    			UseBaseContext(GlobalContext).
    			UseCustomLogger(log.New(io.Discard, "", 0)). // Turn-off random logging by Go stdlib
    			UseTCPOptions(globalTCPOptions)
    
    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