MCPcopy
hub / github.com/di-sukharev/opencommit / onComplete

Method onComplete

out/cli.cjs:52679–52691  ·  view source on GitHub ↗
(trailers)

Source from the content-addressed store, hash-verified

52677 return false;
52678 }
52679 }
52680 onUpgrade(statusCode, headers, socket) {
52681 assert2(!this.aborted);
52682 assert2(!this.completed);
52683 return this[kHandler].onUpgrade(statusCode, headers, socket);
52684 }
52685 onComplete(trailers) {
52686 this.onFinally();
52687 assert2(!this.aborted);
52688 this.completed = true;
52689 if (channels.trailers.hasSubscribers) {
52690 channels.trailers.publish({ request: this, trailers });
52691 }
52692 try {
52693 return this[kHandler].onComplete(trailers);
52694 } catch (err) {

Callers

nothing calls this directly

Calls 3

onFinallyMethod · 0.95
onErrorMethod · 0.95
onCompleteMethod · 0.45

Tested by

no test coverage detected