aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-------------------------