예제 #1
0
 public ParseCommand(string relativeUri,
                     string method,
                     string sessionToken = null,
                     IList <KeyValuePair <string, string> > headers = null,
                     IDictionary <string, object> data = null) : this(relativeUri : relativeUri,
                                                                      method : method,
                                                                      sessionToken : sessionToken,
                                                                      headers : headers,
                                                                      stream : data != null ? new MemoryStream(UTF8Encoding.UTF8.GetBytes(Json.Encode(data))) : null,
                                                                      contentType : data != null ? "application/json" : null)
 {
 }