mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-23 17:28:55 +02:00
Updated Using HTTPS (SSL) (markdown)
@@ -1,11 +1,11 @@
|
|||||||
### HTTP (SSL)
|
### HTTP (SSL)
|
||||||
You can start a standalone mock server listening for HTTPS requests. To do so, there is just a flag to set when creating the server:
|
You can start a standalone mock server listening for HTTPS requests. To do so, there is just a flag to set when creating the server:
|
||||||
```csharp
|
```csharp
|
||||||
var server1 = FluentMockServer.Start(port: 8443, ssl: true);
|
var server1 = WireMockServer.Start(port: 8443, ssl: true);
|
||||||
|
|
||||||
// or like this
|
// or like this
|
||||||
|
|
||||||
var server2 = FluentMockServer.Start(new FluentMockServerSettings
|
var server2 = WireMockServer.Start(new FluentMockServerSettings
|
||||||
{
|
{
|
||||||
Urls = new[] { "http://localhost:9091", "https://localhost:9443" }
|
Urls = new[] { "http://localhost:9091", "https://localhost:9443" }
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user