hasHeader function
Expects a response to have a header named key
which contains value
. value
can be a String
, or a List of String
s.
If value
is true (default), then this matcher will simply assert that the header is present.
Implementation
Matcher hasHeader(String key, [value]) => _HasHeader(key, value ?? true);