Skip to content

Latest commit

 

History

History

httpclient

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Http Client

As every one knows go default http client can not be used in production, you must implement your own http client.

httpclient is a production ready client.

	options := &httpclient.URLClientOption{
		TLSConfig:  opt.TLSConfig,
		Compressed: opt.Compressed,
	}
	c, err = httpclient.New(options)
	if err != nil {
		return err
	}
	resp, err := uc.Do("GET", "https://fakeURL", nil, nil)

Debug Mode

export HTTP_DEBUG=1