Access HTTP headers on both server and client