aboutsummaryrefslogtreecommitdiffstats
path: root/components/net_traits/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Auto merge of #11468 - rebstar6:refPol4, r=noxbors-servo2016-06-021-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement meta referrer policy delivery (3) <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #10311 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11468) <!-- Reviewable:end -->
| * Add meta-referrer support for documentsRebecca2016-06-021-1/+1
| |
* | send a reply when thread is done exitingAbelardo E. Mendoza2016-05-301-2/+3
|/ | | | | | | | | | fixed failing tests fix tests handle error instead of just unwrappng it create a channel per thread and update tests with a call to rx.recv().unwrap()
* Auto merge of #11225 - izgzhen:patch-input-element-file, r=Manishearthbors-servo2016-05-231-1/+21
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement file related functionalities in htmlinputelement and related - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy --faster` does not report any errors - [x] These changes is related to #11131 - [x] These changes do not require tests because it is a partial implementation 1. Improve the `filemanager_thread` by adding type string and create `SelectedFile` 2. Fill several gaps in `htmlinputelement` implementation related to file type 3. Improve the `File` interface to accommodate the above changes 4. Integrate changes introduced by PR #11189 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11225) <!-- Reviewable:end -->
| * Implement file-type functionalities in htmlinputelement and relatedZhen Zhang2016-05-231-1/+21
| | | | | | | | | | | | | | | | Changes include: - Implement file selection and other DOM behaviours in htmlinputelement - Integrate IpcSender<FileManagerThreadMsg> into ResourceThreads - Improve filemanager_thread, including adding type_string field to SelectedFile - Improve interfaces in FileList/File/Blob to accommodate the above changes
* | Auto merge of #10961 - creativcoder:custom_response_iface, r=jdmbors-servo2016-05-211-12/+64
|\ \ | |/ |/| | | | | | | | | | | | | | | | | adding interface for custom responses Fixes #10960 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10961) <!-- Reviewable:end -->
| * adding interface for custom responsesRahul Sharma2016-05-201-12/+64
| |
* | Remove the pointless StorageThread alias.Ms2ger2016-05-201-3/+3
|/
* Implement trait-based ResourceThreads and clean up related naming issuesZhen Zhang2016-05-201-10/+64
| | | | | | | | | | Changes include: - Introduce an IpcSend trait to abstract over a collection of IpcSenders - Implement ResourceThreads collection to abstract the resource-related sub threads across the component - Rename original ResourceThread and ControlMsg into an unifed CoreResource__ to accommodate above changes and avoid confusions
* Removed unused importsPer Lundberg2016-05-151-1/+0
| | | | This fixes #11185.
* add filemanager_threadZhen Zhang2016-05-111-0/+2
|
* Update dependencieszakorgy2016-05-031-1/+0
|
* requestDevice options (filters and optionalServices)zakorgy2016-05-031-0/+2
|
* Add Bluetooth IPC supportfokinv2016-05-031-0/+1
|
* Add `NetworkError::LoadCancelled` variant.Corey Farwell2016-04-271-2/+2
|
* Add referrer policy pass-through and referrer header logicRebecca2016-04-251-7/+26
| | | | | | | add pass-through from doc to http-loader for referrer_policy, ref_URL add logic for setting referer header add script pass-through for referrer add unit tests for setting referer header
* Auto merge of #10706 - zwn:unused-extern-crates, r=noxbors-servo2016-04-221-0/+1
|\ | | | | | | | | | | | | | | | | | | | | Turn on unused-extern-crates warning. As discussed in #9256. It should solve second half of the issue. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10706) <!-- Reviewable:end -->
| * Silence unused-extern-crates false positives.Zbynek Winkler2016-04-221-0/+1
| | | | | | | | | | | | | | | | | | Added #[allow(unused_extern_crates)] to silence false positives * bitflags, lazy_static and matches because macro_use * alloc_jemalloc because builtin crate See https://github.com/rust-lang/rust/issues/30849
* | Propagating the load errors from network loaderRavi Shankar2016-04-201-6/+16
|/
* Auto merge of #10399 - jdm:pb, r=jdmbors-servo2016-04-051-0/+6
|\ | | | | | | | | | | | | | | | | | | | | Private browsing - Initial steps Rebase of #10160. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10399) <!-- Reviewable:end -->
| * Private browsing - Initial stepsdhaval06032016-04-041-0/+6
| |
* | Set Content-Type in headerDongie Agnir2016-04-011-0/+9
|/
* Disallow unsafe code in net and net_traits.Ms2ger2016-03-181-0/+2
|
* Use lazy_static for HOST_TABLE.Ms2ger2016-03-151-0/+2
| | | | | This might change behaviour if the file is changed between Servo startup and the moment HOST_TABLE is first accessed. I don't think we care.
* Use piston_image instead of stb_image for decoding JPEGsUlf Nilsson2016-03-021-1/+0
| | | | Bump image to 0.7
* mozbrowsersercuritychange eventPaul Rouget2016-02-091-0/+4
|
* Say farewell to in-tree HeapSizeOfAnthony Ramine2016-02-041-2/+5
|
* Make closing related code more clear and more correctJames Sanders2016-01-181-2/+3
|
* Rename net/fetch/request.rs to net/fetch/methods.rs and move Request to ↵Keith Yeung2016-01-181-0/+1
| | | | net_traits
* Remove some unused extern crates.Ms2ger2016-01-131-1/+0
|
* task -> threadrohan.prinja2016-01-101-12/+12
|
* Extract Response from net_traits/lib.rsKeith Yeung2016-01-061-97/+2
|
* minimal implementation of http_network_fetch for testing purposesNikki2016-01-051-1/+11
|
* Resolves #4183 - Implemementing context-based MIME type sniffingDavid Rajchenbach-Teller2015-12-311-5/+27
| | | | | The version of the standard is not finalized at the time of this writing. Specifications may be found here: https://mimesniff.spec.whatwg.org/#context-specific-sniffing .
* Partial implementation of HTTP-network-or-cache fetch step.Nikki2015-12-291-0/+11
|
* adding initial support for websocket subprotocol negotationjmr02015-12-171-1/+8
|
* Fix warnings: Use Vec.extend_from_slice instead of Vec.push_allTetsuharu OHZEKI2015-12-101-2/+1
|
* move websocket creation to resource taskNova Fallen2015-12-081-0/+34
|
* implement support for withCredentialsJigesh Mehta2015-12-041-0/+3
|
* Auto merge of #8692 - GuillaumeGomez:patch-1, r=Wafflespeanutbors-servo2015-11-281-3/+3
|\ | | | | | | | | | | | | | | | | | | Ensure crate are alphabetically sorted cc @nox <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8692) <!-- Reviewable:end -->
| * Add check up on extern crate order and sort extern crates alphabeticallyGuillaume Gomez2015-11-281-3/+3
| |
* | Auto merge of #8516 - KiChjang:http-fetch-refactor, r=jdmbors-servo2015-11-271-2/+7
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | Refactor http_fetch to reflect the new standard Partial #4576. The spec is really getting funky now - it's depending more and more on the DOM objects (e.g. prompting the user for authentication using a `Window` object). I think we can just pass in username and password as properties of the `Request` struct though. I've also added in the async version for http_request. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8516) <!-- Reviewable:end -->
| * Refactor http_fetch to reflect the new standardKeith Yeung2015-11-261-2/+7
| |
* | Remove dependency on regex_macrosSimon Sapin2015-11-241-7/+0
| | | | | | | | | | This reduces the amount of code using unstable features that we depend on. The hand-written IP address parser is probably just as fast.
* | Remove IPv6 subnet parsing in host files like ::1/64Simon Sapin2015-11-241-1/+1
| | | | | | | | | | The host replacement code doesn’t do anything useful with it. (It only compares strings.)
* | Added support for synchronization along with an unit test for cancellation ↵Ravi Shankar2015-11-121-0/+2
| | | | | | | | listener
* | Implement cancellation listener for cancelling network requestsRavi Shankar2015-11-121-4/+11
|/
* Delete dead function load_bytes_iter and related code.Eli Friedman2015-11-071-40/+0
|
* Check in for task 1,4 and 5Abhishek Kumar2015-11-051-2/+2
| | | | | | | | | | | | | | | | | | | | Adding pipelineID to httpresponse message, clearner code for task1 Commit for Refactored task Unit tests Removing extra whitespaces. Removing extra whitespaces. Removing tabs whitespaces Making Code tidier. Style issues Fix Test-tidy Fixes
* Make AsyncResponseListener methods take `&mut self`.Eli Friedman2015-10-151-4/+4
|