abortRequest method

void abortRequest(
  1. Object id
)

Close the HTTP exchange of request id (2026-07-28: closing the request's stream is how a client cancels it on Streamable HTTP).

Implementation

void abortRequest(Object id) {
  final abort = _aborts.remove(id);
  if (abort != null && !abort.isCompleted) abort.complete();
}