首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Azure APIM策略-何时使用<backend> </backend>

Azure APIM策略-何时使用<backend> </backend>
EN

Stack Overflow用户
提问于 2019-01-06 04:09:25
回答 1查看 264关注 0票数 2

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

代码语言:javascript
复制
    <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>节点上完成。

耽误您时间,实在对不起。

EN

回答 1

Stack Overflow用户

发布于 2019-01-06 04:21:49

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54055822

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档