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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
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));