client/splunk.js
function(path, method, query, post, body, headers, callback) {
            var that = this;
            var request = function(callback) {
                return that.http.request(
                    that.urlify(path),
                    {
                        method: method,
                        headers: that._headers(headers),
                        query: query,
                        post: post,
                        body: body,
                        timeout: that.timeout
                    },
                    callback
                );
            };

            return this._requestWrapper(request, callback);
        }
function(path, method, query, post, body, headers, callback) {
            var that = this;
            var request = function(callback) {
                return that.http.request(
                    that.urlify(path),
                    {
                        method: method,
                        headers: that._headers(headers),
                        query: query,
                        post: post,
                        body: body,
                        timeout: that.timeout
                    },
                    callback
                );
            };

            return this._requestWrapper(request, callback);
        }
function ( path , method , query , post , body , headers , callback ) { var that = this ; var request = function ( callback ) { return that . http . request ( that . urlify ( path ) , { method : method , headers : that . _headers ( headers ) , query : query , post : post , body : body , timeout : that . timeout } , callback ) ; } ; return this . _requestWrapper ( request , callback ) ; }
Issues an arbitrary HTTP request to the REST endpoint path segment.

@param {String} path The REST endpoint path segment (with any query parameters already appended and encoded).
@param {String} method The HTTP method (can be `GET`, `POST`, or `DELETE`).
@param {Object} query The entity-specific parameters for this request.
@param {Object} post A dictionary of POST argument that will get form encoded.
@param {Object} body The body of the request, mutually exclusive with `post`.
@param {Object} headers Headers for this request.
@param {Function} callback The function to call when the request is complete: `(err, response)`.

@method splunkjs.Context
Issues an arbitrary HTTP request to the REST endpoint path segment .