kadirahq/lokka-transport-http-auth

Name: lokka-transport-http-auth

Owner: KADIRA

Description: HTTP Transport for Lokka with Basic Auth

Created: 2015-12-14 17:16:05.0

Updated: 2016-01-28 16:09:34.0

Pushed: 2015-12-14 17:50:09.0

Homepage: null

Size: 6

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

lokka-transport-http-auth

HTTP Auth Transport Layer for Lokka (Works only on the server);


This is an extended version of lokka-transport-http with the basic-auth support.

Basic Usage

Install the package:

i --save lokka-transport-http-auth
i --save lokka

This is how to send request to Facebook's SWAPI GraphQL Demo.

rt HttpTransport from 'lokka-transport-http-auth';
t transport = new HttpTransport('http://user:secret@localhost:8090/path');
sport.send(`
{
  allFilms {
    films {
      title
    }
  }
}
hen(response => {
console.log(JSON.stringify(response, null, 2));


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.