Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/core/request/engines/node

core/request/engines/node

This module provides a function that creates a request engine for node.js scripts.

Synopsis

  • The engine is used by default in a node.js.
  • The engine uses Got as a request library.
  • The engine supports response streaming.

Example

import nodeEngine from 'core/request/engines/node';

req('/search', {engine: nodeEngine}).then(({response}) => {
console.log(response.decode());
});

Index

Variables

Variables

default: RequestEngine = ...

Creates request by using node.js with the specified parameters and returns a promise

param params