How to use http-deceiver - 2 common examples

To help you get started, we’ve selected a few http-deceiver 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 sx1989827 / DOClever / Desktop / node_modules / spdy / lib / spdy / handle.js View on Github external
Handle.prototype.assignSocket = function assignSocket (socket, options) {
  var state = this._spdyState

  state.socket = socket
  state.deceiver = httpDeceiver.create(socket, options)

  function onStreamError (err) {
    state.socket.emit('error', err)
  }

  this.getStream(function (stream) {
    stream.on('error', onStreamError)
  })
}
github spdy-http2 / node-spdy / lib / spdy / handle.js View on Github external
Handle.prototype.assignSocket = function assignSocket (socket, options) {
  var state = this._spdyState

  state.socket = socket
  state.deceiver = httpDeceiver.create(socket, options)

  function onStreamError (err) {
    state.socket.emit('error', err)
  }

  this.getStream(function (stream) {
    stream.on('error', onStreamError)
  })
}

http-deceiver

Deceive HTTP parser

MIT
Latest version published 9 years ago

Package Health Score

65 / 100
Full package analysis

Popular http-deceiver functions