package
0.4.0
Repository: https://github.com/go-chassis/foundation.git
Documentation: pkg.go.dev

# README

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

# Functions

New is a function which which sets client option.
No description provided by the author

# Variables

DefaultOptions is a struct object which has default client option.
SignRequest sign a http request so that it can talk to API serverthis is global implementation, if you do not set SignRequest in Optionsclient will use this function.

# Structs

Options is a struct which provides options for client.
Requests is a restful client.