企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# SetHeader `SetHeader(Key, Value)` `Key-{String} Value-{Variant}` 添加/替换要与请求一起发送的标头。 `SetHeader`应该用于只能在请求中包含一次的标头(例如授权,Content-Type等) ``` Dim Request As New WebRequest Request.AddHeader "Authorization", "A..." Request.AddHeader "Authorization", "B..." '// -> Headers: '// Authorization: A... '// Authorization: B... Request.SetHeader "Authorization", "C..." '// -> Headers: '// Authorization: C...。 ```