19 lines
565 B
C#
19 lines
565 B
C#
using System.Net.Http;
|
|
using System.Text;
|
|
|
|
namespace Kreta.Naplo.Infrastructure
|
|
{
|
|
/// <summary>
|
|
/// Json content
|
|
/// </summary>
|
|
/// <seealso cref="System.Net.Http.StringContent" />
|
|
public class JsonContent : StringContent
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="JsonContent"/> class.
|
|
/// </summary>
|
|
/// <param name="content">Content</param>
|
|
public JsonContent(string content) : base(content, Encoding.UTF8, Constants.Http.MediaTypeName.ApplicationJson)
|
|
{ }
|
|
}
|
|
}
|