Skip to content

Commit

Permalink
Add some vertical spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk authored Feb 13, 2024
1 parent 05f6760 commit d349713
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ehttp/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit d349713

Please sign in to comment.