aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/resource_task.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Shift checking for IP address host for HSTS entry to constructorSam Gibson2015-07-221-10/+10
| | | | servo/servo#6105
* Add max-age to HSTS entriesSam Gibson2015-07-221-18/+25
| | | | | | | | Refactors API for pushing new entries on, and adds a max age. This does not add a check for the max-age, or remove old entries from the list. Instead this just adds the data-field. servo/servo#6105
* Do not allow IP address in HSTS listSam Gibson2015-07-221-5/+11
| | | | | | | As per [rfc6797](https://tools.ietf.org/html/rfc6797#section-8.1.1), do not allow IPv4 or IPv6 addresses as host entries into the HSTS list. servo/servo#6105
* Implement mutable HSTS listSam Gibson2015-07-221-14/+70
| | | | | | This prepares the resource task to update the HSTS list when it sees STS headers. This will allow full HSTS support for servo/servo#6105 when the resource task implements the header checking
* Preload an HSTS domain list from chromiumSam Gibson2015-07-221-4/+84
| | | | | This resolves the first part of servo/servo#6105. The remaining part is to update the list based on the STS headers from the server.
* Upgrade to rustc 1.3.0-dev (fddfd089b 2015-07-10)Simon Sapin2015-07-151-1/+1
|
* Use Box::into_raw rather than boxed::into_raw.Ms2ger2015-06-251-2/+2
| | | | The latter is deprecated.
* Auto merge of #6325 - Ms2ger:from_str, r=noxbors-servo2015-06-141-3/+2
|\ | | | | | | | | | | | | | | The former appears to be preferred. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6325) <!-- Reviewable:end -->
| * Use str::parse() rather than FromStr::from_str.Ms2ger2015-06-131-3/+2
| | | | | | | | The former appears to be preferred.
* | Preserve UserAgent header on redirect.Eduard Burtescu2015-06-121-1/+3
|/
* Auto merge of #6171 - eleweek:fix-4184-ok, r=Manishearthbors-servo2015-05-251-2/+17
|\ | | | | | | | | | | | | | | | | | | I tried fixing #4184 , here is the code I have right now. I haven't tested it, because I don't know what is the best way to test this part of code. Would like some help with testing this. Should I write an autotest or should I just test manually? <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6171) <!-- Reviewable:end -->
| * Fix issues with PR #6171Alexander Putilin2015-05-261-9/+9
| |
| * fixes 4184: no-sniff and check-for-apache-bug for mime sniffingAlexander Putilin2015-05-241-2/+17
| |
* | Reduce max line length from 150 to 120 charactersCorey Farwell2015-05-241-6/+12
|/ | | | Part of https://github.com/servo/servo/issues/6041
* Initial changes for devtools support for logging HTTP requests.Himaja2015-05-051-4/+8
| | | | | | | | | | Add a NetworkEventActor to devtools/actors/ Authors: Ashritha Mohan Ram <amohanr@ncsu.edu> Himaja Valavala <hsvalava@ncsu.edu> Anand Chandrasekar <achandr9@ncsu.edu> Yiyang Wang <ywang95@ncsu.edu>
* Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.Simon Sapin2015-05-051-6/+5
|
* Replace usage of ResponseSenders by LoadConsumerMarcus Klaas2015-04-191-12/+11
|
* Warning fixes.Josh Matthews2015-04-161-1/+0
|
* Document async networking interfaces.Josh Matthews2015-04-161-0/+1
|
* Completely abstract sending responses over channels vs. listeners.Josh Matthews2015-04-161-7/+32
|
* Start switching net/ to use abstractions over channels to allow introducing ↵Josh Matthews2015-04-161-22/+28
| | | | non-channel communication in the future.
* Reduce duplicationBogdan Cuza2015-04-141-27/+8
|
* Make Metadata use ContentTypeBogdan Cuza2015-04-141-4/+30
|
* Move net::resource_task unit tests into the unit_tests crate.Simon Sapin2015-04-081-173/+0
|
* Enable optional mime sniffing, and integrate it with the file loader.Josh Matthews2015-04-061-5/+34
|
* Remove the sniffer task.Josh Matthews2015-04-061-38/+14
|
* Split out shared networking code into net_traits crateGilles Leblanc2015-04-031-169/+7
| | | | Fixes #4476
* Stop using old_io in net tests.Ms2ger2015-03-261-10/+4
|
* Stop using old_path in net.Ms2ger2015-03-261-1/+1
|
* Update some code that's feature-gated under core.Ms2ger2015-03-211-7/+5
|
* Replace most usage of std::old_io::File.Ms2ger2015-03-201-4/+6
|
* Cleanup resource_task's global_init().Ms2ger2015-03-201-12/+23
|
* Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.Ms2ger2015-03-181-3/+3
|
* Implement view-source protocol. Fixes #4181.Chris Double2015-03-171-1/+1
| | | | | | | | | | | This follows the recommendation from issue #4181. A handler for 'view-source' delegates to the HTTP loader. In that loader I check for view-source, adjust the URL to be the URL to be viewed and modify the Content-Type header to be text/plain. This doesn't actually result in the source being viewed as rendering text/plain is not yet implemented.
* Add more robust hostsfile parsingGilles Leblanc2015-03-051-14/+135
| | | | | | | | | | | | Adds hostsfile parsing support for: * Tabs * Comments (line and end of line) * IPv4 address validation * Basic IPv6 address validation * End of line whitespaces * Host name alias (multiple host names per address) Fixes #5063
* Fix warnings in net.Ms2ger2015-02-131-6/+6
|
* Upgrade to rustc ba2f13ef0 2015-02-04Simon Sapin2015-02-111-8/+8
|
* bug #3219: specify hostfile by HOST_FILE env varShing Lyu2015-02-061-2/+97
|
* Make XMLHttpRequest user-set headers be preserved across redirects.Josh Matthews2015-02-041-0/+4
|
* Rename some variables for clarity.Josh Matthews2015-02-041-4/+4
|
* Unify the get/set scookie APIs to make them both deal with raw strings.Josh Matthews2015-02-041-6/+8
|
* Differentiate between HTTP and non-HTTP APIs for cookie operations. Fix some ↵Josh Matthews2015-02-041-16/+13
| | | | incorrect cookie removal operation logic. Order the returned cookies according to the spec. Make cookie unit tests pass.
* Improve redirect behaviour to clear headers and reevaluate sent cookies. ↵Josh Matthews2015-02-041-29/+39
| | | | Implement storage-related cookie behaviour such as domain and path matching that cookie-rs doesn't require. Remove stored cookies when an empty value is stored. Document cookie code.
* cookies and cookies storage implementationShamir Khodzha2015-02-041-14/+41
|
* add `unwrap` to `send/recv` callsAlexandru Cojocaru2015-02-031-3/+3
|
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-1/+1
| | | | | | | | This used to conflict with the util crate from the standard library, which has long since been removed. The import in layout has not been changed because of a conflict with the util mod there.
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-23/+23
|
* Pass a String to spawn_named.Ms2ger2015-01-211-1/+1
| | | | | IntoString has been removed from Rust, and named() will take a String, so there is no good reason to do otherwise here.
* Move to to_owned rather than into_string.Ms2ger2015-01-201-1/+2
| | | | into_string has been removed from Rust.
* Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.Ms2ger2015-01-081-2/+2
|