send-response takes key-value pairs