aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Karneges <justin@affinix.com>2014-05-09 00:15:14 -0700
committerJustin Karneges <justin@affinix.com>2014-05-09 00:15:14 -0700
commit17a1b695340ecc03426fab1022d520bfb5793aa6 (patch)
treedf8bc7ba8f6ba846eb3e158f9eaa41cf4a8e3fb8
parent444a2d5608545bf51b0442b39f41c00c32bf7250 (diff)
downloadpollymer-17a1b695340ecc03426fab1022d520bfb5793aa6.tar
pollymer-17a1b695340ecc03426fab1022d520bfb5793aa6.tar.gz
set lang
-rw-r--r--README.md16
1 files changed, 9 insertions, 7 deletions
diff --git a/README.md b/README.md
index 72a56fc..6d76862 100644
--- a/README.md
+++ b/README.md
@@ -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
-------------------------