Add ended() method on HttpServerResponse