withHeader method

HttpWaitStrategy withHeader(
  1. String name,
  2. String value
)

Adds a custom HTTP request header.

Returns this for chaining.

Implementation

HttpWaitStrategy withHeader(String name, String value) {
  _headers[name] = value;
  return this;
}