3.45设置 Bearer 身份认证(JWT)
创建于 2026 年 8 月 17 日约 1 分钟读完
向请求中添加 Authorization 标头,格式为 Bearer 关键字后接 Token 令牌字符串组成。
HttpRequestBuilder.Post("https://furion.net/") .AddBearerAuthentication("your-token");HttpRequestBuilder.Post("https://furion.net/") .AddBearerAuthentication("X-Authorization", "your-token"); // 支持自定义标头键