将标头添加到PostHttp进程或Apache Nifi [英] Add header to PostHttp processsor Apache Nifi

查看:108
本文介绍了将标头添加到PostHttp进程或Apache Nifi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在apache nifi的发帖请求标头中添加自定义标头,我已经看到在配置选项卡中有作为HTTP标头(regex)发送的属性,我对regex不太熟悉,无论如何添加标头及其值,如下所示:token:READ?

Im trying to add a custom header in my post request header in apache nifi, I have seen that in the configuration tab there's Attributes to send as http header (regex) I'm not very familiar with regex, any idea how to add a header and its value like the following : token : READ ?

推荐答案

token.如果您有多个要命名的属性,则可以使用管道将它们或"在一起:

PostHttp's "Attributes to Send as HTTP Headers (Regex)" property can accept a regex, but it will work just fine to specify a single attribute name like token. If you had multiple attribute you wanted to name, you could use a pipe to "or" them together:

token|attrib2|attrib3

对于您选择的每个属性,属性名称和值均作为HTTP标头名称和值发送.

For each attribute you selected, the attribute name and value are sent as the HTTP header name and value.

这篇关于将标头添加到PostHttp进程或Apache Nifi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆