// Send GET request to given RightScale API uri (e.g. "/api/instances")
// uri must start with "/"
Send GET request to given RightScale API uri
uri must start with "/"
// Send GET request to given RightScale API uri ( e . g . " / api / instances " ) // uri must start with " / "
func (r *RightScaleCloud) sendRequest(uri string) (resp *http.Response, err error) {
	url := "http://localhost:" + r.Rll.Port + uri
	req, err := http.NewRequest("GET", url, nil)
	if err != nil {
		return nil, err
	}
	req.Header.Set("RLL_SECRET", r.Rll.Secret)
	cl := http.Client{}
	resp, err = cl.Do(req)
	return
}
func ( r * RightScaleCloud ) sendRequest ( uri string ) ( resp * http . Response , err error ) { url := " " + r . Rll . Port + uri req , err := http . NewRequest ( " " , url , nil ) if err != nil { return nil , err } req . Header . Set ( " " , r . Rll . Secret ) cl := http . Client { } resp , err = cl . Do ( req ) return }
Send GET request to given RightScale API uri
uri must start with "/"
Send GET request to given RightScale API uri uri must start with " / "