mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-17 23:57:03 +01:00
47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
using System.Collections.Generic;
|
|
using System.Text;
|
|
using WireMock.Types;
|
|
|
|
namespace WireMock.Util;
|
|
|
|
/// <summary>
|
|
/// BodyData
|
|
/// </summary>
|
|
public class BodyData : IBodyData
|
|
{
|
|
/// <inheritdoc cref="IBodyData.Encoding" />
|
|
public Encoding? Encoding { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public string? BodyAsString { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public IDictionary<string, string>? BodyAsFormUrlEncoded { 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; }
|
|
|
|
/// <inheritdoc />
|
|
public string? IsFuncUsed { get; set; }
|
|
} |