Граф коммитов

26 Коммитов

Автор SHA1 Сообщение Дата
Mislav Marohnić acc5768ae9 Docs nitpick: don't encourage search forms over GET
The `/query` endpoint sound like a search endpoint, but those should be
fetched over GET, not POST. Instead, use a URL that sounds like some
resource should be created.
2015-06-15 23:08:51 +02:00
Caleb Boyd 427949b96f remove un-needed promise allocations in example 2015-04-13 16:17:05 -05:00
David Frank b43677db4c node.js module link 2015-01-28 03:17:23 +08:00
Andreas Savvides 1e1cccb53b Fix typo in npm install instructions 2015-01-16 11:35:44 +00:00
Joshua Peek 688d596327 Tested in IE9 2015-01-15 13:14:37 -08:00
Matthew Andrews 5b7e895a1a Merge remote-tracking branch 'github/master' into auto-npm-publish
Conflicts:
	package.json
2015-01-12 21:05:19 +00:00
Joshua Peek 2c61395ed7 Add X-Request-URL 2015-01-10 16:25:22 -08:00
Matthew Andrews 01797bceb6 Rename package to whatwg-fetch and update README.md 2015-01-09 23:24:56 +00:00
David Graham 4b9e44493c Add missing quote.
Closes #40.
2014-12-05 11:26:07 -08:00
David Graham 502798d1b5 Reject example promise with an Error.
Closes #35.
2014-11-20 16:26:41 -07:00
David Graham f36e9e40f6 Remove form encoded object body.
This was based on a misreading of the URLSearchParams portion of
section 5.2 of https://fetch.spec.whatwg.org/#body-mixin.

Use FormData as the request body to POST form fields instead.
2014-11-01 17:26:22 -06:00
Matthew Andrews 5a8b470d50 Backtrack on Promise library switch 2014-10-31 00:29:06 +00:00
Matthew Andrews 3d2ea7cbdf Two spaces good, four spaces bad 2014-10-30 23:58:04 +00:00
Matthew Andrews 3f39d80c5a Use fewer words for clarity 2014-10-30 23:56:47 +00:00
Matthew Andrews 8ad17fcafe SP: ot » to 2014-10-30 23:52:26 +00:00
Matthew Andrews 4567d4acbf json formatting doesn't look good with a part of a json file 2014-10-30 23:51:50 +00:00
Matthew Andrews d27ec3e212 Dots ruin everything 2014-10-30 23:51:12 +00:00
Matthew Andrews 5a8b3cf89c Document `fetch` usage with Browserify — and switch suggested Promise library to one with a CommoJS API more similar to Fetch. 2014-10-30 23:49:02 +00:00
♩ Ionică Bizău ♫ ♪ 856d4c8837 Shell highlight 2014-10-23 20:33:48 +03:00
Zeke Sikelianos 06b43a562d use shorthand npm installation 2014-10-23 10:21:04 -07:00
David Graham 7667c49257 Add npm install command. 2014-10-23 10:44:34 -06:00
David Graham 24b64da6e1 Extract inline functions from example for clarity. 2014-10-20 12:00:33 -06:00
David Graham 4e5025f4d3 Add http status mapping description. 2014-10-20 12:00:21 -06:00
Christian Alfoni 9b83330138 Add example of success and error handlers
I thought it would be nice to have an example of how to handle success and error handlers. It is not given how to implement this correctly. Maybe even my example is not the best way to do it, but wanted to contribute with a suggestion :-)
2014-10-20 09:47:11 +02:00
David Graham 2d0d174b47 Fix response body example.
The initial promise is resolved when the response headers are
available, not necessarily when the entire body has been received. The
body must be processed by resolving another promise (text, json, blob).
2014-10-14 09:57:48 -06:00
David Graham 7eee89d15e Add readme. 2014-10-12 17:26:22 -06:00