Add example /test (#1513)

This commit is contained in:
Stef Heyenrath authored and GitHub committed 2026-10-06 22:51:17 +02:00
1 parent dc4cdfae50
commit b0f9924933
1 file changed
+11 -1
+11 -1
View File
@@ -285,11 +285,21 @@ namespace WireMock.Net.ConsoleApplication
var server = WireMockServer.Start(new WireMockServerSettings
{
StartAdminInterface = true,
Logger = new WireMockConsoleLogger(),
Port = 9091
});
server
.WhenRequest(r => r
.WithPath("/test")
.UsingAnyMethod()
)
.ThenRespondWith(r => r
.WithStatusCode(HttpStatusCode.OK)
.WithBody("OK")
);
server
.WhenRequest(r => r
.WithPath("/Content-Length")