encodingIs function
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>[];
};