From d34971305b06147e322955149cbe574c64db547c Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Tue, 13 Feb 2024 12:49:07 +0100 Subject: [PATCH] Add some vertical spacing --- ehttp/src/types.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ehttp/src/types.rs b/ehttp/src/types.rs index a311743..f4139b4 100644 --- a/ehttp/src/types.rs +++ b/ehttp/src/types.rs @@ -100,13 +100,16 @@ impl<'h> IntoIterator for &'h Headers { pub enum Mode { /// If a request is made to another origin with this mode set, the result is an error. SameOrigin = 0, + /// The request will not include the Origin header in a request. /// The server's response will be opaque, meaning that JavaScript code cannot access its contents NoCors = 1, + /// Includes an Origin header in the request and expects the server to respond with an /// "Access-Control-Allow-Origin" header that indicates whether the request is allowed. #[default] Cors = 2, + /// A mode for supporting navigation Navigate = 3, }