mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-18 07:13:46 +01:00
68 lines
1.8 KiB
C#
68 lines
1.8 KiB
C#
using System;
|
|
using JetBrains.Annotations;
|
|
using WireMock.Matchers;
|
|
using WireMock.Matchers.Request;
|
|
|
|
namespace WireMock.RequestBuilders
|
|
{
|
|
/// <summary>
|
|
/// The BodyRequestBuilder interface.
|
|
/// </summary>
|
|
public interface IBodyRequestBuilder
|
|
{
|
|
/// <summary>
|
|
/// The with body.
|
|
/// </summary>
|
|
/// <param name="matcher">
|
|
/// The matcher.
|
|
/// </param>
|
|
/// <returns>
|
|
/// The <see cref="IRequestMatcher"/>.
|
|
/// </returns>
|
|
IRequestMatcher WithBody([NotNull] IMatcher matcher);
|
|
|
|
/// <summary>
|
|
/// The with body.
|
|
/// </summary>
|
|
/// <param name="body">
|
|
/// The body.
|
|
/// </param>
|
|
/// <returns>
|
|
/// The <see cref="IRequestMatcher"/>.
|
|
/// </returns>
|
|
IRequestMatcher WithBody(string body);
|
|
|
|
/// <summary>
|
|
/// The with body byte[].
|
|
/// </summary>
|
|
/// <param name="body">
|
|
/// The body as byte[].
|
|
/// </param>
|
|
/// <returns>
|
|
/// The <see cref="IRequestMatcher"/>.
|
|
/// </returns>
|
|
IRequestMatcher WithBody(byte[] body);
|
|
|
|
/// <summary>
|
|
/// The with body string func.
|
|
/// </summary>
|
|
/// <param name="body">
|
|
/// The body string function.
|
|
/// </param>
|
|
/// <returns>
|
|
/// The <see cref="IRequestMatcher"/>.
|
|
/// </returns>
|
|
IRequestMatcher WithBody(Func<string, bool> body);
|
|
|
|
/// <summary>
|
|
/// The with body byte[] func.
|
|
/// </summary>
|
|
/// <param name="body">
|
|
/// The body byte[] function.
|
|
/// </param>
|
|
/// <returns>
|
|
/// The <see cref="IRequestMatcher"/>.
|
|
/// </returns>
|
|
IRequestMatcher WithBody(Func<byte[], bool> body);
|
|
}
|
|
} |