Couchbase.HammockHttpClient.HammockResponseWrapper.ExecuteWith C# (CSharp) Method

ExecuteWith() public method

public ExecuteWith ( RestClient client ) : void
client RestClient
return void
            public void ExecuteWith(RestClient client)
            {
                this.response = client.Request(this.request);

                if (response.InnerException != null) throw response.InnerException;
                if (response.StatusCode != System.Net.HttpStatusCode.OK)
                    throw new InvalidOperationException(String.Format("Server returned {0}: {1}, {2}", response.StatusCode, response.StatusDescription, response.Content));
            }
HammockHttpClient.HammockResponseWrapper