Allow matching header with a function