Ms2ger
b49bd79625
Use str::parse() rather than FromStr::from_str.
...
The former appears to be preferred.
2015-06-13 17:58:16 +02:00
Simon Sapin
ef8edd4e87
Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.
2015-05-05 10:07:34 -04:00
Simon Sapin
691222696e
Move net::cookie unit tests into the unit_tests crate.
2015-04-07 16:37:12 -04:00
Gilles Leblanc
ba36a108c1
Split out shared networking code into net_traits crate
...
Fixes #4476
2015-04-03 13:38:10 -04:00
Corey Farwell
679dd679a7
Improve and fix default_path cookie algorithm
...
* Previously, the function returned an owned String, which is not
necessary, so now it returns a slice
* Steps have now been documented/labeled
* The last step of the algorithm was incorrect; it would only slice the
path if the "/" was the last character, which is not what the spec
says. The spec says to slice up until (but not including) the last
"/". Also added a regression test for this.
2015-03-26 23:44:15 -04:00
Avi Weinstock
cf0657a403
Fixed some deprecation errors in components/net.
2015-03-23 18:28:44 -04:00
Ms2ger
ba87666cdb
Update some code that's feature-gated under core.
2015-03-21 18:44:39 +01:00
Ms2ger
b25564440d
Fix warnings in net.
2015-02-13 11:24:21 +01:00
Simon Sapin
d5dd1d658e
Upgrade to rustc ba2f13ef0 2015-02-04
2015-02-11 14:48:34 -08:00
Josh Matthews
0c51a192d7
Address review comments.
2015-02-04 13:35:05 +00:00
Josh Matthews
14df9f8a70
Differentiate between HTTP and non-HTTP APIs for cookie operations. Fix some incorrect cookie removal operation logic. Order the returned cookies according to the spec. Make cookie unit tests pass.
2015-02-04 13:35:05 +00:00
Josh Matthews
24c8896f88
Improve redirect behaviour to clear headers and reevaluate sent cookies. 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.
2015-02-04 13:35:05 +00:00
Shamir Khodzha
3239aeacdc
cookies and cookies storage implementation
2015-02-04 13:34:06 +00:00