using System.Text; using WireMock.Types; namespace WireMock.Util { /// /// BodyData /// public class BodyData { /// /// The body encoding. /// public Encoding Encoding { get; set; } /// /// The body as string, this is defined when BodyAsString or BodyAsJson are not null. /// public string BodyAsString { get; set; } /// /// The body (as JSON object). /// public object BodyAsJson { get; set; } /// /// The body (as bytearray). /// public byte[] BodyAsBytes { get; set; } /// /// Gets or sets a value indicating whether child objects to be indented according to the Newtonsoft.Json.JsonTextWriter.Indentation and Newtonsoft.Json.JsonTextWriter.IndentChar settings. /// public bool? BodyAsJsonIndented { get; set; } /// /// Gets or sets the body as a file. /// public string BodyAsFile { get; set; } /// /// Is the body as file cached? /// public bool? BodyAsFileIsCached { get; set; } /// /// The detected body type (detection based on body content). /// public BodyType DetectedBodyType { get; set; } /// /// The detected body type (detection based on Content-Type). /// public BodyType DetectedBodyTypeFromContentType { get; set; } /// /// The detected compression. /// public string DetectedCompression { get; set; } } }