From 17a1b695340ecc03426fab1022d520bfb5793aa6 Mon Sep 17 00:00:00 2001 From: Justin Karneges Date: Fri, 9 May 2014 00:15:14 -0700 Subject: set lang --- README.md | 16 +++++++++------- 1 file 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 ------------------------- -- cgit v1.2.3