Check header values in middleware

Is it possible to check on actual header values in middleware? I am aware that this is possible in the routes, but I need other middleware in front to perform some additional checks.


Can you elaborate on what you are wanting to accomplish?

@daniel.tomcej I'm trying to verify information from the client certificate. I've seen the PassTLSClientCert which adds all of the client certficate details to a header named 'X-Forwarded-Tls-Client-Cert-Info'. As a next step I would like to perform some checks on the extracted data.