MCPcopy
hub / github.com/fastify/fastify / isHttp2Reply

Function isHttp2Reply

lib/reply.js:685–687  ·  view source on GitHub ↗
(reply)

Source from the content-addressed store, hash-verified

683}
684
685function isHttp2Reply (reply) {
686 return reply.request.raw?.httpVersionMajor === 2
687}
688
689function writePayload (payload, res, reply) {
690 if (!isHttp2Reply(reply) || Buffer.byteLength(payload) <= HTTP2_WRITE_CHUNK_SIZE) {

Callers 1

writePayloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected