docs: function createBodyWriter(req) {
      var buffers = [];
  
      var contentType = req.contentType();
      var isText = false;
  
      if (!contentType ||
          contentType === 'application/json' ||
          contentType === 'application/x-www-form-urlencoded' ||
          contentType === 'multipart/form-data' ||
          contentType.substr(0, 5) === 'text/') {
          isText = true;
      }
  
      req.body = new Buffer(0);
      return {
          write: function (chunk) {
              buffers.push(chunk);
          },
          end: function () {
              req.body = Buffer.concat(buffers);
  
              if (isText) {
                  req.body = req.body.toString('utf8');
              }
          }
      };
  }