dimichgh / trooba-http-transport

HTTP transport for trooba pipeline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trooba-http-transport

codecov Build Status NPM Downloads Known Vulnerabilities

HTTP transport for trooba pipeline

Get Involved

  • Contributing: Pull requests are welcome!
  • Support: Join our gitter chat to ask questions to get support from the maintainers and other Trooba developers

Install

npm install trooba-http-transport --save

Usage

require('trooba')
    .use(httpTransport, {
        protocol: 'http:',
        hostname: 'www.google.com',
        connectTimeout: 100,
        socketTimeout: 1000
    })
    .build('client:default')
    .get({
        q: 'nike'
    })
    .set('some', 'header')
    .end(function (err, response) {
        console.log(err, response && response.body)
    });

About

HTTP transport for trooba pipeline

License:MIT License


Languages

Language:JavaScript 100.0%