api/http/builders/EndpointBuilder.js
/**
		 * Adds a {@link Parameters} collection, describing the request querystring, using a callback.
		 *
		 * @public
		 * @param {EndpointBuilder~parametersBuilderCallback} callback
		 * @returns {EndpointBuilder}
		 */
Adds a  Parameters collection, describing the request querystring, using a callback.
Adds a Parameters collection describing the request querystring using a callback .
withQueryBuilder(callback) {
			assert.argumentIsRequired(callback, 'callback', Function);
			const builder = new ParametersBuilder();
			callback(builder);
			const query = builder.parameters;
			this._endpoint = new Endpoint(this.endpoint.name, this.endpoint.description, this.endpoint.verb, this.endpoint.protocol, this.endpoint.host, this.endpoint.port, this.endpoint.path, query, this.endpoint.headers, this.endpoint.body, this.endpoint.credentials, this.endpoint.requestInterceptor, this.endpoint.responseInterceptor, this.endpoint.errorInterceptor);
			return this;
		}
withQueryBuilder ( callback ) { assert . argumentIsRequired ( callback , 'callback' , Function ) ; const builder = new ParametersBuilder ( ) ; callback ( builder ) ; const query = builder . parameters ; this . _endpoint = new Endpoint ( this . endpoint . name , this . endpoint . description , this . endpoint . verb , this . endpoint . protocol , this . endpoint . host , this . endpoint . port , this . endpoint . path , query , this . endpoint . headers , this . endpoint . body , this . endpoint . credentials , this . endpoint . requestInterceptor , this . endpoint . responseInterceptor , this . endpoint . errorInterceptor ) ; return this ; }
Adds a {@link Parameters} collection, describing the request querystring, using a callback.
Adds a { @link Parameters } collection describing the request querystring using a callback .