lib/messages/ext_request.js
function ExtendedRequest(options) {
  options = options || {};
  assert.object(options);
  assert.optionalString(options.requestName);
  if (options.requestValue &&
      !(Buffer.isBuffer(options.requestValue) ||
      typeof (options.requestValue) === 'string')) {
    throw new TypeError('options.requestValue must be a buffer or a string');
  }

  options.protocolOp = Protocol.LDAP_REQ_EXTENSION;
  LDAPMessage.call(this, options);

  this.requestName = options.requestName || '';
  this.requestValue = options.requestValue;
}
function ExtendedRequest(options) {
  options = options || {};
  assert.object(options);
  assert.optionalString(options.requestName);
  if (options.requestValue &&
      !(Buffer.isBuffer(options.requestValue) ||
      typeof (options.requestValue) === 'string')) {
    throw new TypeError('options.requestValue must be a buffer or a string');
  }

  options.protocolOp = Protocol.LDAP_REQ_EXTENSION;
  LDAPMessage.call(this, options);

  this.requestName = options.requestName || '';
  this.requestValue = options.requestValue;
}
function ExtendedRequest ( options ) { options = options || { } ; assert . object ( options ) ; assert . optionalString ( options . requestName ) ; if ( options . requestValue && ! ( Buffer . isBuffer ( options . requestValue ) || typeof ( options . requestValue ) === 'string' ) ) { throw new TypeError ( 'options.requestValue must be a buffer or a string' ) ; } options . protocolOp = Protocol . LDAP_REQ_EXTENSION ; LDAPMessage . call ( this , options ) ; this . requestName = options . requestName || '' ; this . requestValue = options . requestValue ; }
/--- API
/ --- API