gpt4 book ai didi

Azure APIM 策略 - 何时使用

转载 作者:行者123 更新时间:2023-12-02 07:25:52 27 4
gpt4 key购买 nike

https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-policies

    <policies>
<inbound>
<!-- statements to be applied to the request go here -->
</inbound>
<backend>
<!-- statements to be applied before the request is forwarded to
the backend service go here -->
</backend>
<outbound>
<!-- statements to be applied to the response go here -->
</outbound>
<on-error>
<!-- statements to be applied if there is an error condition go here -->
</on-error>
</policies>

我们什么时候在政策中使用后端部分?

看起来设置后端 URL 也是在 <inbound> 上完成的仅节点。

感谢您的宝贵时间。

最佳答案

该部分用于在将请求转发到后端之前对请求进行任何转换\检查,例如我向请求添加 header 并验证 oauth token 。

关于Azure APIM 策略 - 何时使用 <backend> </backend>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54055822/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com