Skip to content

Commit

Permalink
README - query and auth
Browse files Browse the repository at this point in the history
  • Loading branch information
oprogramador authored Nov 15, 2016
1 parent 5e841d6 commit 3818308
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ var prefix = require('superagent-prefix')('/static');

request
.get('/some-url')
.query({ foo: 'fooValue', bar: 'barValue' })
.auth('username', 'password')
.use(prefix) // Prefixes *only* this request
.use(nocache) // Prevents caching of *only* this request
.end(function(err, res){
Expand Down

0 comments on commit 3818308

Please sign in to comment.