mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-26 11:21:51 +01:00
26 lines
876 B
C#
26 lines
876 B
C#
using System.Text;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace WireMock.ResponseBuilders
|
|
{
|
|
/// <summary>
|
|
/// The BodyResponseBuilder interface.
|
|
/// </summary>
|
|
public interface IBodyResponseBuilder : IDelayResponseBuilder
|
|
{
|
|
/// <summary>
|
|
/// The with body.
|
|
/// </summary>
|
|
/// <param name="body">The body.</param>
|
|
/// <returns>A <see cref="IResponseBuilder"/>.</returns>
|
|
IResponseBuilder WithBody([NotNull] string body);
|
|
|
|
/// <summary>
|
|
/// The with body as base64.
|
|
/// </summary>
|
|
/// <param name="bodyAsbase64">The body asbase64.</param>
|
|
/// <param name="encoding">The Encoding.</param>
|
|
/// <returns>A <see cref="IResponseBuilder"/>.</returns>
|
|
IResponseBuilder WithBodyAsBase64([NotNull] string bodyAsbase64, [CanBeNull] Encoding encoding = null);
|
|
}
|
|
} |