Tabnine Logo For Javascript
_request
Code IndexAdd Tabnine to your IDE (free)

How to use
_request
function
in
request

Best JavaScript code snippets using request._request(Showing top 3 results out of 315)

origin: wlwr/rss

function request(uri, options) {
  return function(callback) {
  if (options && options.proxyEnable) {
   _request = _request.defaults({proxy: config.proxy});
  }
    _request(uri, options, function(error, response, body) {
      callback(error, response);
    })
  }
}
origin: berkaybayraktar/imdb-node-api

function request(requestUrl, mapperFunction, successCallback, errorCallback) {
  startTimer();
  try {
    _request(requestUrl, function (error, response, body) {
      if (error) {
        return errorHandler(errorCallback, new Error(error));
      } else if (response.statusCode !== 200) {
        return errorHandler(errorCallback, new Error('Movie failed to fetch: IMDB Failed to respond, or responded with error code.'));
      }

      body = body.replace(/\r\n|\n|\r/gm, '').replace(/ +(?= )/g, '');
      var $ = _cheerio.load(body);

      var result = null;
      if (typeof mapperFunction === 'function') {
        result = mapperFunction($);
      }

      if (typeof successCallback === 'function') {
        successCallback(result);
      }
    });
  } catch (e) {
    return errorHandler(errorCallback, e);
  } finally {
    stopTimer();
  }
}
origin: SamyPesse/octocat.js

var r = _request(_extends({}, this.opts.request, {
  method: httpMethod,
  uri: uri,
request(npm)_request

Most used request functions

  • request
  • Response.statusCode
  • RequestAPI.post
  • RequestAPI.get
  • Request.pipe
  • rp,
  • Request.on,
  • Response.headers,
  • RequestAPI.defaults,
  • RequestAPI.put,
  • RequestAPI.jar,
  • Response.statusMessage,
  • RequestAPI.head,
  • Response.on,
  • RequestAPI.cookie,
  • RequestAPI.delete,
  • Response.pipe,
  • RequestAPI.del,
  • requestRetry

Popular in JavaScript

  • ms
    Tiny millisecond conversion utility
  • express
    Fast, unopinionated, minimalist web framework
  • crypto
  • axios
    Promise based HTTP client for the browser and node.js
  • async
    Higher-order functions and common patterns for asynchronous code
  • bluebird
    Full featured Promises/A+ implementation with exceptionally good performance
  • glob
    a little globber
  • minimist
    parse argument options
  • body-parser
    Node.js body parsing middleware
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJavascript Code Index
Get Tabnine for your IDE now