예제 #1
0
 /// <summary>添加文件
 /// </summary>
 public HttpBuilder AddFile(FileParameter file)
 {
     Files.Add(file);
     return(this);
 }
예제 #2
0
 /// <summary>添加文件
 /// </summary>
 public HttpBuilder AddFile(string name, byte[] bytes, string fileName, string contentType = null)
 => AddFile(FileParameter.Create(name, bytes, fileName, contentType));