HttpWaitStrategy constructor

HttpWaitStrategy(
  1. int port, {
  2. String path = '/',
})

Creates an HttpWaitStrategy that probes port at path.

path defaults to '/' and is normalised to start with /.

Implementation

HttpWaitStrategy(this.port, {String path = '/'})
    : path = path.startsWith('/') ? path : '/$path';