MCPcopy Create free account
hub / github.com/fastify/fastify / isHttp2Reply

Function isHttp2Reply

lib/reply.js:693–695  ·  view source on GitHub ↗
(reply)

Source from the content-addressed store, hash-verified

691}
692
693function isHttp2Reply (reply) {
694 return reply.request.raw?.httpVersionMajor === 2
695}
696
697function writePayload (payload, res, reply) {
698 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