lib/mock/index.js
function sendText (req, res, next, data) {
  setContentType(req, res,
    ["text", "html", "text/*", "application/*"],                // allow these types
    ["json", "*/json", "+json", "application/octet-stream"]);   // don't allow these types

  util.debug("Serializing the response as a string");
  res.send(_(data).toString());
}
function sendText (req, res, next, data) {
  setContentType(req, res,
    ["text", "html", "text/*", "application/*"],                // allow these types
    ["json", "*/json", "+json", "application/octet-stream"]);   // don't allow these types

  util.debug("Serializing the response as a string");
  res.send(_(data).toString());
}
function sendText ( req , res , next , data ) { setContentType ( req , res , [ "text" , "html" , "text/*" , "application/*" ] , // allow these types
 [ "json" , "*/json" , "+json" , "application/octet-stream" ] ) ; // don't allow these types
 util . debug ( "Serializing the response as a string" ) ; res . send ( _ ( data ) . toString ( ) ) ; }
Sends the given data as plain-text.

@param   {Request}   req
@param   {Response}  res
@param   {function}  next
@param   {*}         data
Sends the given data as plain - text .