addSecurityHeader method
添加安全响应头部并返回新配置
@param key 头部键名 @param value 头部值 @return 新的 HttpConfig 实例
Implementation
HttpConfig addSecurityHeader(String key, String value) {
final newHeaders = Map<String, String>.from(securityHeaders)..[key] = value;
return copyWith(securityHeaders: newHeaders);
}