企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# Execute `Execute(Request) {WebResponse}` `Request - {WebRequest}` 执行给定的请求(将请求的FormattedResource附加到BaseUrl)并返回响应。 ``` Dim Client As New WebClient Client.BaseUrl = "https://api.example.com/v1/" Dim Request As New WebRequest Request.Resource = "messages/{id}" Request.AddUrlSegment "id", 123 '// Add querystring, body, headers, cookies, etc. for request Dim Response As WebResponse Set Response = Client.Execute(Request) '// -> GET https://api.example/com/v1/messages/123 '// headers, cookies, and body... ```