Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Elena Sharovar committed Aug 5, 2015
1 parent 9f6a27f commit 7cb2941
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,21 @@ function doProcess(msg, cfg) {
}
````

# Headers

HTTP Headers for the request can be set in the options object:

// creating requestion options
var options = {
url: 'http://foobarbazbarney.com/api',
json : {message : "Hello, world!"},
headers: {
'Authorization': 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==',
'Accept-Charset': 'utf-8',
'User-Agent': 'Mozilla/5.0'
}
};

# Overriding the success handler

````js
Expand Down

0 comments on commit 7cb2941

Please sign in to comment.