mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-12-06 15:06:45 +01:00
Only load MimeKitUtils when request message is multipart
This commit is contained in:
1 parent
3f3e576750
commit
acbc33f04e
8 files changed
+122
-41
No files matched your search
@@ -1,5 +1,6 @@
|
||||
// Copyright © WireMock.Net
|
||||
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using WireMock.Types;
|
||||
using WireMock.Util;
|
||||
@@ -167,4 +168,11 @@ public interface IRequestMessage
|
||||
/// Gets the connection's client certificate
|
||||
/// </summary>
|
||||
X509Certificate2? ClientCertificate { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the multipart MIME header, if present.
|
||||
/// </summary>
|
||||
/// <param name="contentTypeHeader">When this method returns, contains the multipart MIME header values if found; otherwise, null.</param>
|
||||
/// <returns>true if a multipart MIME header is found; otherwise, false.</returns>
|
||||
bool TryGetMultipartMimeHeader([NotNullWhen(true)] out WireMockList<string>? contentTypeHeader);
|
||||
}
|
||||
Reference in new issue
Block a user