简体   繁体   English

向ORION查询添加标头

[英]Adding headers to ORION inquiries

I'm currently working in an environment where several ORION Context Brokers (OCBs) are deployed and I'm guessing how to include headers in the enquiries. 我目前正在一个部署了几个ORION Context Brokers(OCB)的环境中工作,我猜测如何在查询中包含标题。

I mean, when one of the OCBs communicates with other OCB and wants to add additional headers, how it should be handled (if there is a way to)? 我的意思是,当其中一个OCB与其他OCB通信并希望添加其他标头时,应如何处理(如果有办法)?

Thanks! 谢谢!

If the comunication is done using notifications (ie OCB1 is subscribed to OCB2, so OCB1 receives notifications from OCB2), you could use the NGSIv2 custom notifications functionality in order to include custom headers. 如果使用通知完成通信(即OCB1订阅了OCB2,因此OCB1接收来自OCB2的通知),您可以使用NGSIv2自定义通知功能以包含自定义标头。

See "Custom notifications" section in the NGSIv2 specification document . 请参阅NGSIv2规范文档中的“自定义通知”部分。 Pay special attention to the headers field within httpCustom . 请特别注意httpCustomheaders字段。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM