detach method

  1. @override
HttpResponse detach()
override

Signals Angel that the response is being held alive deliberately, and that the framework should not automatically close it.

This is mostly used in situations like WebSocket handlers, where the connection should remain open indefinitely.

Implementation

@override
HttpResponse detach() {
  _isDetached = true;
  return rawResponse;
}