mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-05-03 14:14:29 +02:00
Create WireMock.Net.MimePart project (#1300)
* Create WireMock.Net.MimePart project * . * REFACTOR * ILRepack * -- * ... * x * x * . * fix * public class MimePartMatcher * shared * min * . * <!--<DelaySign>true</DelaySign>--> * Update README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
38
src/WireMock.Net.Shared/Util/BodyParserSettings.cs
Normal file
38
src/WireMock.Net.Shared/Util/BodyParserSettings.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
// Copyright © WireMock.Net
|
||||
|
||||
using System.IO;
|
||||
|
||||
namespace WireMock.Util;
|
||||
|
||||
internal class BodyParserSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// The body stream to parse.
|
||||
/// </summary>
|
||||
public Stream Stream { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// The (optional) content type of the body.
|
||||
/// </summary>
|
||||
public string? ContentType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The (optional) content encoding of the body.
|
||||
/// </summary>
|
||||
public string? ContentEncoding { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Automatically decompress GZip and Deflate encoded content.
|
||||
/// </summary>
|
||||
public bool DecompressGZipAndDeflate { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Try to deserialize the body as JSON.
|
||||
/// </summary>
|
||||
public bool DeserializeJson { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Try to deserialize the body as FormUrlEncoded.
|
||||
/// </summary>
|
||||
public bool DeserializeFormUrlEncoded { get; set; } = true;
|
||||
}
|
||||
Reference in New Issue
Block a user