add better way for dynamic creation of attributes for HTTP headers