mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 11:22:10 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			298 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			298 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package client
 | 
						|
 | 
						|
import (
 | 
						|
	"net/http"
 | 
						|
	"time"
 | 
						|
)
 | 
						|
 | 
						|
func New() *http.Client {
 | 
						|
	return &http.Client{
 | 
						|
		Transport: &http.Transport{
 | 
						|
			MaxIdleConns:        100,
 | 
						|
			MaxIdleConnsPerHost: 100,
 | 
						|
			IdleConnTimeout:     30 * time.Second,
 | 
						|
			DisableCompression:  false,
 | 
						|
			DisableKeepAlives:   false,
 | 
						|
		},
 | 
						|
	}
 | 
						|
}
 |