Convert http_server to use http_writer