@adonisjs/http-server 7.1.0 → 7.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2511,6 +2511,16 @@ var Response = class extends Macroable6 {
2511
2511
  }
2512
2512
  }
2513
2513
  }
2514
+ /**
2515
+ * Listen for the event the response is written
2516
+ * to the TCP socket.
2517
+ *
2518
+ * Under the hood the callback is registered with
2519
+ * the "https://github.com/jshttp/on-finished" package
2520
+ */
2521
+ onFinish(callback) {
2522
+ onFinished(this.response, callback);
2523
+ }
2514
2524
  /**
2515
2525
  * Writes headers with the Node.js res object using the
2516
2526
  * response.setHeader method
@@ -4512,4 +4522,4 @@ export {
4512
4522
  Server,
4513
4523
  defineConfig
4514
4524
  };
4515
- //# sourceMappingURL=chunk-CLGQYYS7.js.map
4525
+ //# sourceMappingURL=chunk-MUS67JY5.js.map