You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SOP/sop-sdk/sdk-csharp/SDKCSharp/Common/RequestForm.cs

41 lines
962 B

6 years ago
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SDKCSharp.Common
{
public class RequestForm
{
/// <summary>
/// 请求表单内容
/// </summary>
public Dictionary<string, string> Form { get; set; }
6 years ago
/// <summary>
/// 上传文件
/// </summary>
public List<UploadFile> Files { get; set; }
/// <summary>
/// 指定或者设置字符集
/// </summary>
/// <value>The charset.</value>
public Encoding Charset { get; set; }
/// <summary>
/// 指定或设置HTTP请求method
/// </summary>
/// <value>The request method.</value>
public RequestMethod RequestMethod { get; set; } = RequestMethod.POST;
6 years ago
public RequestForm(Dictionary<string, string> form)
{
this.Form = form;
6 years ago
}
6 years ago
}
}