Files
OSS.Tools/Http/OSS.Tools.Http/Mos/FormParameter.cs
T
2019-12-14 12:56:40 +08:00

60 lines
1.4 KiB
C#
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#region Copyright (C) 2016 Kevin (OSS开源系列) 公众号:osscore
/***************************************************************************
*   文件功能描述:Http请求 == 参数实体
*
*   创建人: Kevin
* 创建人Email:1985088337@qq.com
*
*****************************************************************************/
#endregion
namespace OSS.Tools.Http.Mos
{
/// <summary>
///
/// </summary>
public struct FormParameter
{
/// <summary>
/// 构造函数
/// </summary>
/// <param name="name"></param>
/// <param name="value"></param>
public FormParameter(string name, object value)
{
Name = name;
Value = value;
//Type = type;
//Domain = string.Empty;
}
/// <summary>
/// 参数名称
/// </summary>
public string Name;
/// <summary>
/// 参数值
/// </summary>
public object Value;
///// <summary>
///// cookie的域名 -- cookie 类型时需要
///// </summary>
//public string Domain;
/// <summary>
/// 重写ToString返回 name=value编码后的格式
/// </summary>
/// <returns>String</returns>
public override string ToString()
{
return $"{Name}={Value}";
}
}
}