xjodoin / batch-request

A simple library for batching HTTP requests

Home Page:http://socialradar.github.io/batch-request/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Batch Request

A simple library for batching HTTP requests

View Documentation

Build Status Built with Grunt

QuickStart

Download via NPM

NPM

then in your app

// Use Batch Request as middleware on an endpoint you want to service batch requests
app.post('/batch', batch);

Optionally use our included middleware to check the validity of your batch request

// Include the batch.validate middleware before batch middleware
app.post('/batch', batch.validate, batch);

And that's it!

Proudly written in Washington, D.C. by:

SocialRadar

About

A simple library for batching HTTP requests

http://socialradar.github.io/batch-request/

License:MIT License