Add support for sending direct response as well as handlers