http: use union insead of reduce