MCPcopy Create free account
hub / github.com/nodejs/node / [kBeginSend]

Method [kBeginSend]

lib/internal/http2/compat.js:892–902  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

890 }
891
892 [kBeginSend]() {
893 const state = this[kState];
894 const headers = this[kHeaders];
895 headers[HTTP2_HEADER_STATUS] = state.statusCode;
896 const options = {
897 endStream: state.ending,
898 waitForTrailers: true,
899 sendDate: state.sendDate,
900 };
901 this[kStream].respond(headers, options);
902 }
903
904 writeInformation(statusCode, headers) {
905 if (typeof statusCode !== 'number' ||

Callers

nothing calls this directly

Calls 1

respondMethod · 0.45

Tested by

no test coverage detected