allow overriding content-type, content-length when responding