Jan Andre Ikenmeyer
1d6fe65401
Update MPL license to https (part 4)
2018-11-19 14:47:27 +01:00
Bastien Orivel
9a7eeb349a
Update crossbeam-channel to 0.3
2018-11-18 19:33:19 +01:00
Simon Sapin
2012be4a8b
cargo fix --edition-idioms
2018-11-08 09:28:00 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
Pyfisch
cb07debcb6
Format remaining files
2018-11-06 22:30:31 +01:00
Simon Sapin
9f9bf8f6bc
Switch most crates to the 2018 edition
2018-11-06 16:12:04 +01:00
Simon Sapin
76e59a46d3
Sort use
statements
2018-11-06 15:26:02 +01:00
Simon Sapin
45f7199eee
cargo fix --edition
2018-11-06 15:26:02 +01:00
Pyfisch
f512e262a5
Reduce right drift in scheme_fetch
2018-11-03 16:15:48 +01:00
Pyfisch
2481ad25f8
Rustfmt net crate
2018-11-03 15:29:01 +01:00
Bastien Orivel
024b40b39d
Update hyper to 0.12
2018-11-01 19:17:36 +01:00
Fernando Jiménez Moreno
0f73544297
Support for byte range requests on file urls
2018-10-31 12:50:58 +01:00
Simon Sapin
2a996fbc8f
Replace mpsc with crossbeam/servo channel, update ipc-channel
...
Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com>
2018-09-12 13:33:32 +08:00
Jackson Lewis
430ba86668
Tidy things up
2018-09-06 16:09:35 -07:00
Jackson Lewis
04288748ee
Make file fetch asynchronous
2018-09-04 14:50:33 -07:00
Jackson Lewis
f04c965a9b
Read file in chunks and send chunks to FetchTaskTarget instead of read_to_end call
2018-08-28 10:15:50 -07:00
CYBAI
7f5a1538d3
Use specific assertion for net fetch methods
2018-01-26 01:30:31 +08:00
Gregory Terzian
993e2f55ed
handle caching of response with a body of ResponseBody::Receiving
2018-01-13 10:48:36 +08:00
Gregory Terzian
609e975c50
ignore aborted response in http caching
2018-01-13 10:48:35 +08:00
Manish Goregaokar
6f59b152f1
Add aborted flag to response, set when fetch is aborted
2017-11-20 17:04:55 -08:00
Manish Goregaokar
6dd7af2bda
Fetch cancellation: Add CancellationListener
2017-11-20 16:54:24 -08:00
Manish Goregaokar
1dfb125cc9
Fetch cancellation: Add cancel_chan to FetchContext
2017-11-17 15:59:59 -08:00
bors-servo
c9884604e9
Auto merge of #18882 - KiChjang:fix-origin, r=jdm
...
Use the correct origin in fetch
Fixes #18147 .
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18882 )
<!-- Reviewable:end -->
2017-11-15 16:08:49 -06:00
Keith Yeung
1c8d04973e
Use the correct URL when checking for bad port
2017-11-15 13:17:17 -08:00
Simon Sapin
793bebfc0e
Upgrade to rustc 1.23.0-nightly (02004ef78 2017-11-08)
2017-11-09 16:56:39 +01:00
Keith Yeung
c6bb1cb9d5
Merge request type and destination
2017-10-23 11:19:35 -07:00
Matt Brubeck
efc3683cc7
Fix commonmark Markdown warnings in docs, part 1
...
Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is
passed to rustdoc.
This is mostly a global find-and-replace for bare URIs on lines by
themselves in doc comments.
2017-10-17 11:24:57 -07:00
Clément DAVID
c5fe235112
order derivable traits lists
...
Ignoring :
- **generated**.rs
- python/tidy/servo_tidy_tests/rust_tidy.rs
2017-08-23 21:38:44 +02:00
Keith Yeung
b50bcdc8fc
Rename basic fetch to scheme fetch
2017-08-08 09:27:17 -07:00
Keith Yeung
ed9c16575c
Update main fetch
2017-08-08 09:22:29 -07:00
Corey Farwell
23e5bfaf27
Audit usages of unicode case-changing methods.
2017-07-26 23:44:01 +00:00
Fabrice Desré
990b85049e
Ignore mime type parameters in nosniff
...
This patch implements the following changes:
- Only check for the toplevel/sublevel part of the mime type when
deciding if it's a js or css resource, ignoring the mime parameters.
- Fix the wpt tests that did not escape url parameters properly and
also used an invalid syntax for the mime parameter.
- Update the wpt manifest.
2017-05-15 14:43:45 +02:00
Anthony Ramine
c0f9fb8f55
Do not return an error for non-GET data: requests ( fixes #13293 )
2017-04-08 21:47:55 +02:00
Anthony Ramine
16863017a9
Move the HTTP connector in HttpState
2017-04-06 19:35:11 +02:00
Anthony Ramine
e6cc88e5a2
Kill some commented-out code
2017-04-05 15:01:31 +02:00
Anthony Ramine
fb86bfebf4
Introduce HstsList::switch_known_hsts_host_domain_url_to_https
2017-04-05 14:42:59 +02:00
bors-servo
1071c3339f
Auto merge of #16126 - ferjm:issue-14520-block-media-csv, r=nox
...
Block scripts with text/csv, audio/*, video/* and image/* mime types
This patch implements step 12 of the Main Fetch section of the Fetch API standard. It blocks the load of scripts with `text/csv`, `audio/*`, `video/*` and `image/*` mime types.
Credit for the logic of `should_block_mime_type` function should go to the author of #14770 .
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #14520
- [X] There are tests for these changes
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16126 )
<!-- Reviewable:end -->
2017-04-05 02:34:27 -05:00
Anthony Ramine
901877da1a
Introduce http_loader::set_default_accept
2017-04-04 13:17:18 +02:00
Anthony Ramine
4281205662
Update the steps in fetch_with_cors_cache
2017-04-04 13:17:17 +02:00
Fernando Jiménez Moreno
29a56c4d1a
Block scripts with text/csv, audio/*, video/* and image/* mime types
2017-04-03 18:25:15 +02:00
Anthony Ramine
64ba597a3a
Move Arc out of HttpState
2017-04-03 14:00:36 +02:00
Anthony Ramine
016fee016b
Move the HTTP connector to FetchContext
2017-04-03 12:47:33 +02:00
Anthony Ramine
7b16021a89
Make Response::url_list be a bare Vec<ServoUrl>
2017-04-03 12:47:28 +02:00
Anthony Ramine
28f1f669bc
Update steps of main_fetch according to the Fetch spec
2017-04-03 12:39:13 +02:00
Anthony Ramine
cb2eb81208
Remove all internal mutability from Request
2017-04-03 12:39:07 +02:00
Anthony Ramine
f42a63baea
Make fetch take a &Request
2017-04-03 12:33:43 +02:00
Anthony Ramine
d022535f9c
Make the WebSocket handshake ourselves to ease switching libs
...
We need to switch to tungstenite to finally update openssl, this commit
rewrites the whole websocket infrastructure to properly follow the Fetch
spec and to make switching to a different websocket library easier.
2017-03-29 19:17:27 +02:00
Anthony Ramine
d64aa9c5bf
Simplify should_be_blocked_due_to_nosniff
2017-03-27 14:14:34 +02:00
Anthony Ramine
54d37d920c
Remove some useless Option<T> wrappers from ServoUrl methods
2017-03-26 16:15:06 +02:00
Anthony Ramine
0bd54b904b
Properly follow the spec in WebSocket::Constructor
2017-03-24 09:43:14 +01:00