package client import "net/http" type HTTPBody []byte type HTTPHeader map[string]string type HTTPEnvelope struct { Path string Method string Header HTTPHeader Body HTTPBody CACert string } type Client struct { BaseURI string } func New(uri string) Client { return Client{ BaseURI: uri, } } func (c *Client) MakeRequest(env HTTPEnvelope) (*http.Response, []byte, error) { http.DefaultTransport.(*http.Transport) }