mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-27 03:21:04 +01:00
41
src/WireMock.Net/Models/BodyData.cs
Normal file
41
src/WireMock.Net/Models/BodyData.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System.Text;
|
||||
using WireMock.Types;
|
||||
|
||||
namespace WireMock.Util
|
||||
{
|
||||
/// <summary>
|
||||
/// BodyData
|
||||
/// </summary>
|
||||
internal class BodyData : IBodyData
|
||||
{
|
||||
/// <inheritdoc cref="IBodyData.Encoding" />
|
||||
public Encoding Encoding { get; set; }
|
||||
|
||||
/// <inheritdoc cref="IBodyData.BodyAsBytes" />
|
||||
public string BodyAsString { get; set; }
|
||||
|
||||
/// <inheritdoc cref="IBodyData.BodyAsJson" />
|
||||
public object BodyAsJson { get; set; }
|
||||
|
||||
/// <inheritdoc cref="IBodyData.BodyAsBytes" />
|
||||
public byte[] BodyAsBytes { get; set; }
|
||||
|
||||
/// <inheritdoc cref="IBodyData.BodyAsJsonIndented" />
|
||||
public bool? BodyAsJsonIndented { get; set; }
|
||||
|
||||
/// <inheritdoc cref="IBodyData.BodyAsFile" />
|
||||
public string BodyAsFile { get; set; }
|
||||
|
||||
/// <inheritdoc cref="IBodyData.BodyAsFileIsCached" />
|
||||
public bool? BodyAsFileIsCached { get; set; }
|
||||
|
||||
/// <inheritdoc cref="IBodyData.DetectedBodyType" />
|
||||
public BodyType DetectedBodyType { get; set; }
|
||||
|
||||
/// <inheritdoc cref="IBodyData.DetectedBodyTypeFromContentType" />
|
||||
public BodyType DetectedBodyTypeFromContentType { get; set; }
|
||||
|
||||
/// <inheritdoc cref="IRequestMessage.DetectedCompression" />
|
||||
public string DetectedCompression { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user