handlers/collecting: optionally collect headers as well