private static string ProcessRackSpace(RackSpaceClient client) { HttpWebResponse response = (HttpWebResponse)client.HttpRequest.GetResponse(); Stream stream = response.GetResponseStream(); StreamReader reader = new StreamReader(stream); return reader.ReadToEnd(); }
public static string Get(RackSpaceClient client) { client.Method = WebMethod.GET; return ProcessRackSpace(client); }
public static string Post(RackSpaceClient client) { client.Method = WebMethod.POST; return ProcessRackSpace(client); }