mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Added Websocket to RequestMode enum
set unreachable in dom/request.rs for websocket fixed imports
This commit is contained in:
parent
6d4ccab2b7
commit
8bf924dc79
3 changed files with 3 additions and 0 deletions
|
@ -826,6 +826,7 @@ impl Into<RequestMode> for NetTraitsRequestMode {
|
|||
NetTraitsRequestMode::SameOrigin => RequestMode::Same_origin,
|
||||
NetTraitsRequestMode::NoCors => RequestMode::No_cors,
|
||||
NetTraitsRequestMode::CorsMode => RequestMode::Cors,
|
||||
NetTraitsRequestMode::WebSocket => unreachable!("Websocket request mode should never be exposed to JS"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue