Allow clients to determine the difference between create or update on PUT

PUT allows an object to be created (http 201).  This allows REST code to
indicate an object has been created and clients to react to it.

Plan on using this for some oauth / user level interactions in the future.
Agree... Hrm


> On Oct 15, 2014, at 9:10 PM, Daniel Smith <notifications@github.com> wrote:
> 
> In pkg/client/restclient.go:
> 
> > @@ -76,7 +76,7 @@ func NewRESTClient(baseURL *url.URL, c runtime.Codec) *RESTClient {
> >  }
> >  
> >  // doRequest executes a request against a server
> > -func (c *RESTClient) doRequest(request *http.Request) ([]byte, error) {
> > +func (c *RESTClient) doRequest(request *http.Request) ([]byte, bool, error) {
> Would it be more useful to send back the status as an int? I mean we might want to know other statuses in the future and adding a bool for each is not good.
> 
> —
> Reply to this email directly or view it on GitHub.