mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-29 05:11:46 +02:00
23 lines
696 B
C#
23 lines
696 B
C#
using System.Threading.Tasks;
|
|
#if !USE_ASPNETCORE
|
|
using IRequest = Microsoft.Owin.IOwinRequest;
|
|
#else
|
|
using IRequest = Microsoft.AspNetCore.Http.HttpRequest;
|
|
#endif
|
|
|
|
namespace WireMock.Owin.Mappers
|
|
{
|
|
/// <summary>
|
|
/// IOwinRequestMapper
|
|
/// </summary>
|
|
internal interface IOwinRequestMapper
|
|
{
|
|
/// <summary>
|
|
/// MapAsync IRequest to RequestMessage
|
|
/// </summary>
|
|
/// <param name="request">The OwinRequest/HttpRequest</param>
|
|
/// <param name="options">The WireMockMiddlewareOptions</param>
|
|
/// <returns>RequestMessage</returns>
|
|
Task<RequestMessage> MapAsync(IRequest request, IWireMockMiddlewareOptions options);
|
|
}
|
|
} |