Update CORS naming from 'CORS' to 'Cors'.

As per:

https://aturon.github.io/style/naming/README.html#general-conventions-[rfc-#430]

Acronyms should be considered one word and not all caps.
This commit is contained in:
Corey Farwell 2016-11-09 18:30:30 -05:00
parent 35f328d717
commit bf8752ac9e
9 changed files with 67 additions and 67 deletions

View file

@ -57,8 +57,8 @@ pub enum Referrer {
pub enum RequestMode {
Navigate,
SameOrigin,
NoCORS,
CORSMode
NoCors,
CorsMode
}
/// Request [credentials mode](https://fetch.spec.whatwg.org/#concept-request-credentials-mode)
@ -92,7 +92,7 @@ pub enum RedirectMode {
#[derive(Copy, Clone, PartialEq, HeapSizeOf)]
pub enum ResponseTainting {
Basic,
CORSTainting,
CorsTainting,
Opaque
}
@ -106,7 +106,7 @@ pub enum Window {
/// [CORS settings attribute](https://html.spec.whatwg.org/multipage/#attr-crossorigin-anonymous)
#[derive(Copy, Clone, PartialEq, Serialize, Deserialize)]
pub enum CORSSettings {
pub enum CorsSettings {
Anonymous,
UseCredentials
}
@ -150,7 +150,7 @@ impl Default for RequestInit {
type_: Type::None,
destination: Destination::None,
synchronous: false,
mode: RequestMode::NoCORS,
mode: RequestMode::NoCors,
use_cors_preflight: false,
credentials_mode: CredentialsMode::Omit,
use_url_credentials: false,
@ -230,7 +230,7 @@ impl Request {
referrer_policy: Cell::new(None),
pipeline_id: Cell::new(pipeline_id),
synchronous: false,
mode: RequestMode::NoCORS,
mode: RequestMode::NoCors,
use_cors_preflight: false,
credentials_mode: CredentialsMode::Omit,
use_url_credentials: false,