bool extractHeaderBoolValue(Map<String, String> headers, String name) { final v = extractHeaderStringValue(headers, name); return v?.toLowerCase() == 'true'; }