将标头添加到PostHttp进程或Apache Nifi [英] Add header to PostHttp processsor 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屋!