Function pact_mock_server::create_tls_mock_server
source · pub fn create_tls_mock_server(
pact_json: &str,
addr: SocketAddr,
tls: &ServerConfig
) -> Result<i32>
Expand description
Creates a TLS mock server. Requires the pact JSON as a string as well as the port for the mock server to run on. A value of 0 for the port will result in a port being allocated by the operating system. The port of the mock server is returned.
pact_json
- Pact in JSON formataddr
- Socket address to listen ontls
- TLS config