How to test if a response header exist and/or the value matches

Problem/Question

We want to test whether a response header exists and/or the header value matches a character string or a number. Surprisingly, there is no ready-made or simple solution for this. Are we missing something?

Relevant docs you followed/actions you took to solve the issue

Research in Google, ChatGPT, Netdata Forum, Github Issues.

Environment/Browser/Agent’s version etc

Netdata nightly.

What I expected to happen

We would like to know what the best strategy is to test if a response header exists and/or the value matchses a string or number.

Hello everyone, is there anyone who could look at my question? Is the question too unclear?

Addresses in 16662