servo/components/net
bors-servo 8a8204ffc8 Auto merge of #7447 - ddrmanxbxfr:master, r=jdm
Issue #7382 Use descriptive enums instead of booleans for MIMEClassifier::classifer

Hi guys i've done a small pass of refactor in the MIMEClassifier implementation. (See issue #7382 )
   - Moved the predicates to separate functions
   - Added a mimetype enum so we can compare them easily after calling MIMEClassifier::get_media_type

I hope it follows rust good pratices (care it's my first time doing rust).

Improvements and tips are welcome :).

Thanks for looking at it.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7447)
<!-- Reviewable:end -->
2015-09-18 07:22:59 -06:00
..
fetch sort all uses 2015-08-20 20:47:12 +08:00
about_loader.rs sort all uses 2015-08-20 20:47:12 +08:00
Cargo.toml Bump euclid to 0.2 2015-09-12 01:06:26 +02:00
cookie.rs sort all uses 2015-08-20 20:47:12 +08:00
cookie_storage.rs sort all uses 2015-08-20 20:47:12 +08:00
data_loader.rs sort all uses 2015-08-20 20:47:12 +08:00
file_loader.rs sort all uses 2015-08-20 20:47:12 +08:00
hsts.rs sort all uses 2015-08-20 20:47:12 +08:00
http_loader.rs Auto merge of #7633 - aidanhs:aphs-remove-sslprovider, r=jdm 2015-09-14 14:57:55 -06:00
image_cache_task.rs sort all uses 2015-08-20 20:47:12 +08:00
lib.rs Move net_error_list from net to net_traits. Fixes #7050. 2015-08-06 16:37:08 -05:00
mime_classifier.rs Fix BinaryOrPLaintextClassifier bug with utf16-be & utf16-le and correct tests 2015-09-12 19:59:20 -04:00
pub_domains.rs Fix existing syntactics nits. 2015-08-16 10:30:43 -04:00
resource_task.rs Auto merge of #7447 - ddrmanxbxfr:master, r=jdm 2015-09-18 07:22:59 -06:00
storage_task.rs Remove 'get_*' on getters as per RFC 0344 on various components 2015-09-12 20:14:01 -04:00