'use strict'

const BodyStream = require('./body-stream')

exports.handleBodyRequest = (conn) => {
  new BodyStream(1024).pipe(conn)
}

'use strict'

const BodyStream = require('./body-stream')

exports.handleBodyRequest = (conn) => {
  const length = 1024 * 1024
  conn.write('HTTP/1.1 200 OK\n')
  conn.write('Content-Type: text/plain\n')
  conn.write('\n')
  new BodyStream(length).pipe(conn)
}

Send HTTP response on TCP channel
Send HTTP response on TCP channel

The load testing tools don't support plain TCP.

OHM-556
