#region Copyright (C) 2016 Kevin (OSS开源系列) 公众号:osscore
/***************************************************************************
* 文件功能描述:Http请求 == 参数实体
*
* 创建人: Kevin
* 创建人Email:1985088337@qq.com
*
*****************************************************************************/
#endregion
namespace OSS.Tools.Http
{
///
///
///
public struct FormParameter
{
///
/// 构造函数
///
///
///
public FormParameter(string name, object value)
{
Name = name;
Value = value;
//Type = type;
//Domain = string.Empty;
}
///
/// 参数名称
///
public string Name;
///
/// 参数值
///
public object Value;
/////
///// cookie的域名 -- cookie 类型时需要
/////
//public string Domain;
///
/// 重写ToString返回 name=value编码后的格式
///
/// String
public override string ToString()
{
return $"{Name}={Value}";
}
}
}