Resolve the superset of headers from all inputs.