diff options
author | Justin Karneges <justin@affinix.com> | 2014-05-09 00:15:14 -0700 |
---|---|---|
committer | Justin Karneges <justin@affinix.com> | 2014-05-09 00:15:14 -0700 |
commit | 17a1b695340ecc03426fab1022d520bfb5793aa6 (patch) | |
tree | df8bc7ba8f6ba846eb3e158f9eaa41cf4a8e3fb8 | |
parent | 444a2d5608545bf51b0442b39f41c00c32bf7250 (diff) | |
download | pollymer-17a1b695340ecc03426fab1022d520bfb5793aa6.tar pollymer-17a1b695340ecc03426fab1022d520bfb5793aa6.tar.gz |
set lang
-rw-r--r-- | README.md | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -35,13 +35,15 @@ Limitations Usage ----- - var req = new Pollymer.Request(); - req.on('finished', function(code, result, headers) { ... }); - req.on('error', function(reason) { ... }); - var headers = { ... }; - var body = 'some data'; - req.maxTries = 2; // try twice - req.start('POST', 'http://example.com/path', headers, body); +```javascript +var req = new Pollymer.Request(); +req.on('finished', function(code, result, headers) { ... }); +req.on('error', function(reason) { ... }); +var headers = { ... }; +var body = 'some data'; +req.maxTries = 2; // try twice +req.start('POST', 'http://example.com/path', headers, body); +``` Methods of Request Object ------------------------- |