usingTls method

HttpWaitStrategy usingTls({
  1. bool insecure = false,
})

Switches the request scheme to https.

When insecure is true, certificate validation is disabled — useful for containers with self-signed certificates.

Returns this for chaining.

Implementation

HttpWaitStrategy usingTls({bool insecure = false}) {
  _tls = true;
  _insecureTls = insecure;
  return this;
}