Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added README.

  • Loading branch information...
commit 04bd02d2daf72209882f97ba25877bf0b7453edd 1 parent afbcfc3
Guillermo Rauch authored July 30, 2012

Showing 1 changed file with 59 additions and 0 deletions. Show diff stats Hide diff stats

  1. 59  README.md
59  README.md
Source Rendered
... ...
@@ -0,0 +1,59 @@
  1
+
  2
+# superagent-queue
  3
+
  4
+Adds request queueing capabilities to superagent.
  5
+
  6
+## How to use
  7
+
  8
+```js
  9
+var request = require('superagent');
  10
+require('superagent-queue');
  11
+
  12
+// ordered get requests
  13
+request
  14
+  .post('/')
  15
+  .send(1)
  16
+  .queue('numbers')
  17
+  .end(function(){});
  18
+
  19
+request
  20
+  .post('/')
  21
+  .send(2)
  22
+  .queue('numbers')
  23
+  .end(function(){});
  24
+
  25
+request
  26
+  .post('/')
  27
+  .send(3)
  28
+  .queue('numbers')
  29
+  .end(function(){});
  30
+
  31
+// parallel requests
  32
+request.get('/normal', function(){});
  33
+request.post('/normal', function(){});
  34
+```
  35
+
  36
+## License 
  37
+
  38
+(The MIT License)
  39
+
  40
+Copyright (c) 2011 Guillermo Rauch <guillermo@learnboost.com>
  41
+
  42
+Permission is hereby granted, free of charge, to any person obtaining
  43
+a copy of this software and associated documentation files (the
  44
+'Software'), to deal in the Software without restriction, including
  45
+without limitation the rights to use, copy, modify, merge, publish,
  46
+distribute, sublicense, and/or sell copies of the Software, and to
  47
+permit persons to whom the Software is furnished to do so, subject to
  48
+the following conditions:
  49
+
  50
+The above copyright notice and this permission notice shall be
  51
+included in all copies or substantial portions of the Software.
  52
+
  53
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
  54
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  55
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  56
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  57
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  58
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  59
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 notes on commit 04bd02d

Please sign in to comment.
Something went wrong with that request. Please try again.