public Request(string method, string uri, Hashtable data) { this.method = method; this.uri = new Uri(uri); this.byteStream = new MemoryStream(Encoding.UTF8.GetBytes(JSON.JsonEncode(data))); this.AddHeader("Content-Type", "application/json"); }