int? extractHeaderIntValue(Map<String, String> headers, String name) { final v = extractHeaderStringValue(headers, name); return v == null ? null : int.parse(v); }