parse_extension_header method
dynamic
parse_extension_header()
Implementation
dynamic parse_extension_header() {
var $$;
switch (_getState(_transitions13)) {
case 0:
case 2:
var ch0 = _ch, pos0 = _cursor, startPos0 = _startPos;
_startPos = _cursor;
while (true) {
$$ = _parse_header_name();
if (!success) break;
var seq = List<dynamic>.filled(3, null, growable: false)..[0] = $$;
$$ = _parse_HCOLON();
if (!success) break;
seq[1] = $$;
$$ = _parse_header_value();
if (!success) break;
seq[2] = $$;
$$ = seq;
break;
}
if (!success) {
_ch = ch0;
_cursor = pos0;
}
_startPos = startPos0;
break;
case 1:
$$ = null;
success = false;
break;
}
if (!success && _cursor > _testing) {
_failure(_expect18);
}
return $$;
}