diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-08-03 21:39:41 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-08-03 22:11:07 +0530 |
commit | 7a2627f795ed27be722acf4694428d5d9ecc7ab4 (patch) | |
tree | cfa8ffbef178576da981cbbfcc6d41b8df69fa8f /src/components/net/fetch/request.rs | |
parent | e678943939ba3cff5ff0c7f3555d948f3d220454 (diff) | |
download | servo-7a2627f795ed27be722acf4694428d5d9ecc7ab4.tar.gz servo-7a2627f795ed27be722acf4694428d5d9ecc7ab4.zip |
Fix stuff in fetch crate
Diffstat (limited to 'src/components/net/fetch/request.rs')
-rw-r--r-- | src/components/net/fetch/request.rs | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/src/components/net/fetch/request.rs b/src/components/net/fetch/request.rs index 069c30541ea..2de606a1a31 100644 --- a/src/components/net/fetch/request.rs +++ b/src/components/net/fetch/request.rs @@ -32,25 +32,24 @@ pub enum Referer { /// A [request mode](http://fetch.spec.whatwg.org/#concept-request-mode) pub enum RequestMode { - SameOrigin, // same-origin - NoCORS, // No CORS - CORSMode, // CORS - ForcedPreflightMode // CORS-with-forced-preflight + SameOrigin, + NoCORS, + CORSMode, + ForcedPreflightMode } /// Request [credentials mode](http://fetch.spec.whatwg.org/#concept-request-credentials-mode) pub enum CredentialsMode { - Omit, // omit - CredentialsSameOrigin, // same-origin - Include // include + Omit, + CredentialsSameOrigin, + Include } - -// [Response tainting](http://fetch.spec.whatwg.org/#concept-request-response-tainting) +/// [Response tainting](http://fetch.spec.whatwg.org/#concept-request-response-tainting) pub enum ResponseTainting { - Basic, // basic - CORSTainting, // CORS - Opaque // Opaque + Basic, + CORSTainting, + Opaque } /// A [Request](http://fetch.spec.whatwg.org/#requests) as defined by the Fetch spec @@ -104,6 +103,6 @@ impl Request { manual_redirect: false, redirect_count: 0, response_tainting: Basic - } + } } -}
\ No newline at end of file +} |