encodingIs function

Checker<Response> encodingIs(
  1. String expected
)

Implementation

Checker<Response> encodingIs(String expected) => (Response resp) {
      if (expected != resp.encoding) {
        return <Mismatch>[
          new EqualityMismatch(expected, resp.encoding,
              customMessage: (m) =>
                  'Expected encoding ${m.expected} but found ${m.actual}!')
        ];
      }
      return <Mismatch>[];
    };