Rahul Sharma
3e74164e5f
implements data-url fetching
2016-04-01 09:49:08 +05:30
Stjepan Glavina
4965c93d16
Merge branch 'master' into fix-local-urls-only-10147
2016-03-24 13:45:25 +01:00
Stjepan Glavina
3ec4515a73
Address PR comments
...
- Remove fn `url_is_local`
- Remove fn `set_local_urls_only`
- Fix `test_fetch_with_local_urls_only`
2016-03-24 13:42:40 +01:00
Stjepan Glavina
bcd813d961
Fix fetching about:blank
...
When fetching about:blank, response body should be the empty byte
sequence.
Spec: https://fetch.spec.whatwg.org/#concept-basic-fetch
Before this change, response body would be set to `ResponseBody::Empty`,
and then fetching would result in an infinite loop at step 19 in fn
`main_fetch` (methods.rs).
2016-03-24 11:17:12 +01:00
Stjepan Glavina
6576fde29b
Correctly handle flag local_urls_only
...
In function Request::fetch_main, flag local_urls_only (if set)
should allow fetching local urls only. Before this change, the flag had
the inverse behaviour.
2016-03-23 18:01:43 +01:00
Ms2ger
91d63d5fcf
Use a match rather than unwrap() in main_fetch.
2016-03-10 14:07:41 +01:00
Ms2ger
3e3053653e
Fix warnings in the fetch code.
2016-03-09 16:12:15 +01:00
Ms2ger
8b629652ac
Make Response::new() an inherent method.
...
There is no real reason to put this in an extension trait.
2016-03-08 17:55:18 +01:00
Nikki
b187985e49
set response.body asynchronously in Fetch
2016-03-07 15:09:39 -07:00
Nikki
3f79667050
implementing working demonstration of calling Fetch asynchronously
2016-03-01 13:02:38 -07:00
Keith Yeung
96971244ac
Update fetch attributes to match the new spec
2016-02-27 08:40:09 -05:00
Nikki
cf607606e0
implement http redirect fetch, and various Fetch Standard updates
2016-02-17 12:52:24 -07:00
Nikki
e8665d47ea
working on implementing Cors Check and Origin to Ascii serialisation
2016-02-09 13:51:35 -07:00
Nikki
db8cc6eccf
Partial implementation of Main Fetch step, including appropiate updates to tests
2016-01-29 12:40:54 -07:00
Nikki
5426df32de
tests for boundary conditions on redirect_count in fetch
2016-01-20 13:03:08 -07:00
Nikki
4165786767
Test setting response.body by fetching on a server
2016-01-18 15:12:31 -07:00
Keith Yeung
a53661f6c8
Rename net/fetch/request.rs to net/fetch/methods.rs and move Request to net_traits
2016-01-18 00:57:19 -05:00