// Copyright © WireMock.Net
using JsonConverter.Abstractions;
using JsonConverter.Newtonsoft.Json;
namespace WireMock.Util;
internal class BodyParserSettings
{
///
/// The body stream to parse.
///
public Stream Stream { get; set; } = null!;
///
/// The (optional) content type of the body.
///
public string? ContentType { get; set; }
///
/// The (optional) content encoding of the body.
///
public string? ContentEncoding { get; set; }
///
/// Automatically decompress GZip and Deflate encoded content.
///
public bool DecompressGZipAndDeflate { get; set; } = true;
///
/// Try to deserialize the body as JSON.
///
public bool DeserializeJson { get; set; } = true;
///
/// Try to deserialize the body as FormUrlEncoded.
///
public bool DeserializeFormUrlEncoded { get; set; } = true;
///
/// Gets or sets the default JSON converter used for deserialization.
///
///
/// Set this property to customize how objects are serialized to and deserialized from JSON during mapping.
/// Default is .
///
public IJsonConverter DefaultJsonConverter { get; set; } = new NewtonsoftJsonConverter();
}