using System.Text;
using WireMock.Types;
namespace WireMock.Util
{
///
/// IBodyData
///
public interface IBodyData
{
///
/// The body (as bytearray).
///
byte[] BodyAsBytes { get; set; }
///
/// Gets or sets the body as a file.
///
string BodyAsFile { get; set; }
///
/// Is the body as file cached?
///
bool? BodyAsFileIsCached { get; set; }
///
/// The body (as JSON object).
///
object BodyAsJson { 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.
///
bool? BodyAsJsonIndented { get; set; }
///
/// The body as string, this is defined when BodyAsString or BodyAsJson are not null.
///
string BodyAsString { get; set; }
///
/// The detected body type (detection based on body content).
///
BodyType DetectedBodyType { get; set; }
///
/// The detected body type (detection based on Content-Type).
///
BodyType DetectedBodyTypeFromContentType { get; set; }
///
/// The detected compression.
///
string DetectedCompression { get; set; }
///
/// The body encoding.
///
Encoding Encoding { get; set; }
}
}