continued development: split mechaism to compute reponse content type v/s apply it to the stream into two steps