// NewRequest : send new request
NewRequest : send new request
// NewRequest : send new request
func (c *Client) NewRequest(method string, fullPath string, headers map[string]string, body io.Reader) (*http.Request, error) {
	req, err := http.NewRequest(method, fullPath, body)
	if err != nil {
		c.Logger.Error("Request creation failed: %v", err)
		return nil, err
	}
	if headers != nil {
		for k, vv := range headers {
			req.Header.Set(k, vv)
		}
	}
	return req, nil
}
func ( c * Client ) NewRequest ( method string , fullPath string , headers map [ string ] string , body io . Reader ) ( * http . Request , error ) { req , err := http . NewRequest ( method , fullPath , body ) if err != nil { c . Logger . Error ( " " , err ) return nil , err } if headers != nil { for k , vv := range headers { req . Header . Set ( k , vv ) } } return req , nil }
NewRequest : send new request
NewRequest : send new request