How to use the spdy.handle function in spdy

To help you get started, we’ve selected a few spdy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github igrigorik / node-spdyproxy / lib / server.js View on Github external
function synReply(socket, code, reason, headers, cb) {
    try {
      if (socket._handle instanceof spdy.handle) {
        var handle = socket._handle;
        handle._stream.respond(code, headers, function (err) {
          cb.call();
        });
          
      
      /*
      // SPDY socket
      if(socket._lock){
        socket._lock(function() {
          var socket = this;
          stream.respond(code, headers, function (err) {});
          this._spdyState.framer.replyFrame(
            this._spdyState.id, code, reason, headers,
            function (err, frame) {
              socket.connection.write(frame);

spdy

Implementation of the SPDY protocol on node.js.

MIT
Latest version published 4 years ago

Package Health Score

76 / 100
Full package analysis