0.1.0 • Published 9 years ago

saucier-get v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago
                       _                            _   
                      (_)                          | |  
  ___  __ _ _   _  ___ _  ___ _ __ ______ __ _  ___| |_ 
 / __|/ _` | | | |/ __| |/ _ \ '__|______/ _` |/ _ \ __|
 \__ \ (_| | |_| | (__| |  __/ |        | (_| |  __/ |_ 
 |___/\__,_|\__,_|\___|_|\___|_|         \__, |\___|\__|
                                          __/ |         
                                         |___/          

Saucier-Get

This is an Express.JS compatible middlewares that provides backend API request support. This middleware can be used without adjustment when using Saucier to build a headless Drupal front-end.

This module requires you to create either an HTTP or HTTPS agent, and pass that to saucier-get when requiring.

Usage

var https = require('https');
var saucierGet = require('saucier-get')( new https.Agent({ keepAlive: true}) );
var saucier = require('saucier-core')(saucierGet, saucierCache, templates, {});

An HTTPS agent is not required, but recommended.